[FFmpeg-cvslog] vp3: fix compilation with a disabled theora

Michael Niedermayer git at videolan.org
Mon Jan 21 19:09:17 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 21 19:04:34 2013 +0100| [5b95d39ee157abf9dd9f54848824292624748b9c] | committer: Michael Niedermayer

vp3: fix compilation with a disabled theora

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b95d39ee157abf9dd9f54848824292624748b9c
---

 libavcodec/vp3.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index c768eb9..7b470dc 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1922,6 +1922,7 @@ static int vp3_decode_frame(AVCodecContext *avctx,
 
     init_get_bits(&gb, buf, buf_size * 8);
 
+#if CONFIG_THEORA_DECODER
     if (s->theora && get_bits1(&gb))
     {
         int type = get_bits(&gb, 7);
@@ -1952,6 +1953,7 @@ static int vp3_decode_frame(AVCodecContext *avctx,
         av_log(avctx, AV_LOG_ERROR, "Header packet passed to frame decoder, skipping\n");
         return -1;
     }
+#endif
 
     s->keyframe = !get_bits1(&gb);
     if (!s->all_fragments) {



More information about the ffmpeg-cvslog mailing list