[FFmpeg-devel] [PATCH] make img_convert symbol conditional on lavc version, not libswscale

Diego Biurrun diego
Tue Jun 3 13:46:18 CEST 2008

Currently we declare img_convert() in avcodec.h conditional to

#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)

However, in imgconvert.c, img_convert is defined conditional to


so that img_convert() is not available when compiling with swscale
enabled although it is declared in avcodec.h.

Here is a patch to change the condition in imgconvert.c, which I believe
is the correct solution.

For reference, I stumbled over this when looking that the following two
patches applied to FFmpeg by Mandriva and Debian:


and the associated Debian bug report:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: imgconvert.diff
Type: text/x-diff
Size: 746 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080603/9f486137/attachment.diff>

More information about the ffmpeg-devel mailing list