[FFmpeg-devel] [PATCH] define AVPixelFormat aliases as enumerators instead of macros

Jean-Yves Avenard jyavenard at gmail.com
Sat Jan 16 01:43:28 CET 2016


On 15 January 2016 at 18:51, wm4 <nfxjfg at googlemail.com> wrote:
> API users might check for the existence of such pixfmts with #ifdef,
> and I don't understand the reasoning behind your patch. Why would
> external projects redefine these macros?

All other pixfmts are already enums, why the discrepency ?
Having everything an enum seems much cleaner to me IMHO.


More information about the ffmpeg-devel mailing list