[FFmpeg-devel] Possible bug with FF_API_CODEC_ID

Stefano Sabatini stefasab at gmail.com
Wed Oct 16 18:39:48 CEST 2013


On date Tuesday 2013-10-15 10:35:18 -0300, salsaman encoded:
> Hi,
> 
> I suspect there may be a bug in libavcodec/version.h:
> 
> 
> 
> #define FF_API_CODEC_ID          (LIBAVCODEC_VERSION_MAJOR < 56)
> 
> 
> If I am correct that this define should indicate that CodecID should be
> used (as opposed to AVCodecID), then the correct value should be either:
> 
> #define FF_API_CODEC_ID          (LIBAVCODEC_VERSION_MAJOR < 55)
> 
> or:
> 
> 
> #define FF_API_CODEC_ID          (LIBAVCODEC_VERSION_MAJOR < 54)
> 
> 
> since the change was made in either version 55 or 54.

The idea is to keep the symbols around for another major bump in order
to limit transition pain. You are recommended to use the new properly
prefixed symbols in your code.

> Am I misunderstanding the meaning of this macro or is it a bug ? If a bug,
> what should the correct value be ?
-- 
FFmpeg = Frenzy Faithful Muttering Political Ephemeral God


More information about the ffmpeg-devel mailing list