From d9c6d7c2b4036966cff70f21ee57cbab7b45f9f3 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sat, 12 Jun 2004 22:14:13 +0000 Subject: not all compilers strip unused static functions from object files. gcc 2.96 does not. this causes a bunch of undefined symbols: undefined symbol: ff_init_me (../.libs/xineplug_decode_ff.so) undefined symbol: ff_estimate_p_frame_motion (../.libs/xineplug_decode_ff.so) undefined symbol: ff_fix_long_p_mvs (../.libs/xineplug_decode_ff.so) undefined symbol: ff_fix_long_mvs (../.libs/xineplug_decode_ff.so) undefined symbol: ff_h263_encode_motion (../.libs/xineplug_decode_ff.so) undefined symbol: h263_encode_init (../.libs/xineplug_decode_ff.so) Mike, can you merge this back to ffmpeg cvs? CVS patchset: 6677 CVS date: 2004/06/12 22:14:13 --- src/libffmpeg/libavcodec/svq1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libffmpeg/libavcodec/svq1.c b/src/libffmpeg/libavcodec/svq1.c index a841816af..ec47d374e 100644 --- a/src/libffmpeg/libavcodec/svq1.c +++ b/src/libffmpeg/libavcodec/svq1.c @@ -1064,6 +1064,8 @@ static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *dec return best_score; } +#ifdef CONFIG_ENCODERS + static void svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plane, unsigned char *ref_plane, unsigned char *decoded_plane, int width, int height, int src_stride, int stride) { @@ -1364,6 +1366,8 @@ static int svq1_encode_end(AVCodecContext *avctx) return 0; } +#endif //CONFIG_ENCODERS + AVCodec svq1_decoder = { "svq1", CODEC_TYPE_VIDEO, -- cgit v1.2.3