[FFmpeg-devel] Possible bug with FF_API_CODEC_ID

Timothy Gu timothygu99 at gmail.com
Wed Oct 16 00:32:40 CEST 2013


On Oct 15, 2013 11:15 AM, "salsaman" <salsaman at gmail.com> wrote:
>
> 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.
>
>
>
> Am I misunderstanding the meaning of this macro or is it a bug ? If a bug,
> what should the correct value be ?

This is about a different thing. See commit
104e10fb426f903ba9157fdbfe30292d0e4c3d72 and
ad78b9ed7009197b6d56b3fb6e4c4c5e5276260d.

[...]

Timothy


More information about the ffmpeg-devel mailing list