From 62653987dc6185d17533936465571e0b7ddc2750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 7 Apr 2007 23:54:55 +0200 Subject: Apply patch sent to FFmpeg mailing list to fix building of VP3 decoder without Theora decoder. --- contrib/ffmpeg/libavcodec/vp3.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/ffmpeg/libavcodec/vp3.c b/contrib/ffmpeg/libavcodec/vp3.c index 0d882da32..bf17c2da7 100644 --- a/contrib/ffmpeg/libavcodec/vp3.c +++ b/contrib/ffmpeg/libavcodec/vp3.c @@ -2570,6 +2570,7 @@ static int theora_decode_tables(AVCodecContext *avctx, GetBitContext *gb) return 0; } +#if ENABLE_THEORA_DECODER static int theora_decode_init(AVCodecContext *avctx) { Vp3DecodeContext *s = avctx->priv_data; @@ -2633,6 +2634,7 @@ static int theora_decode_init(AVCodecContext *avctx) vp3_decode_init(avctx); return 0; } +#endif AVCodec vp3_decoder = { "vp3", @@ -2647,6 +2649,7 @@ AVCodec vp3_decoder = { NULL }; +#if ENABLE_THEORA_DECODER AVCodec theora_decoder = { "theora", CODEC_TYPE_VIDEO, @@ -2659,3 +2662,4 @@ AVCodec theora_decoder = { 0, NULL }; +#endif -- cgit v1.2.3