[Ffmpeg-devel] [PATCH] fix compilation when Snow ENcoder is disabled

Guillaume Poirier gpoirier
Thu Aug 10 10:45:29 CEST 2006

This commit:
broke compilation when Snow encoder is disabled.

The symptom as as follows:
libavcodec/libavcodec.a(snow.o)(.text+0xb422): In function `get_block_rd':
/usr/src/mplayer/mplayer/libavcodec/snow.c:3129: undefined reference
to `w53_32_c'
undefined reference to `w97_32_c'
libavcodec/libavcodec.a(snow.o)(.text+0x14374): In function `encode_init':
/usr/src/mplayer/mplayer/libavcodec/snow.c:4064: undefined reference
to `h263_encode_init'

My patch puts all functions used in the encoding process around #ifdef
CONFIG_SNOW_ENCODER pre-processor tests.
I don't know if it's the right way to go, as I'm not sure how tight
Snow encoding and decoding are.
It doesn't seem to break Snow decoding, though tests are welcome.

Best regards,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_conditionnal_compilation_with_Snow.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060810/433a6329/attachment.txt>

More information about the ffmpeg-devel mailing list