diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-21 19:04:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-21 19:04:34 +0100 |
commit | 5b95d39ee157abf9dd9f54848824292624748b9c (patch) | |
tree | 399e302ba118930c911db54e641f82520cb2b355 /libavcodec/vp3.c | |
parent | ed37a566c96662e4ca4f95ae4f24571059febcc4 (diff) | |
download | ffmpeg-streaming-5b95d39ee157abf9dd9f54848824292624748b9c.zip ffmpeg-streaming-5b95d39ee157abf9dd9f54848824292624748b9c.tar.gz |
vp3: fix compilation with a disabled theora
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r-- | libavcodec/vp3.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |