Commit 5b95d39e authored by Michael Niedermayer's avatar Michael Niedermayer

vp3: fix compilation with a disabled theora

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ed37a566
...@@ -1922,6 +1922,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, ...@@ -1922,6 +1922,7 @@ static int vp3_decode_frame(AVCodecContext *avctx,
init_get_bits(&gb, buf, buf_size * 8); init_get_bits(&gb, buf, buf_size * 8);
#if CONFIG_THEORA_DECODER
if (s->theora && get_bits1(&gb)) if (s->theora && get_bits1(&gb))
{ {
int type = get_bits(&gb, 7); int type = get_bits(&gb, 7);
...@@ -1952,6 +1953,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, ...@@ -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"); av_log(avctx, AV_LOG_ERROR, "Header packet passed to frame decoder, skipping\n");
return -1; return -1;
} }
#endif
s->keyframe = !get_bits1(&gb); s->keyframe = !get_bits1(&gb);
if (!s->all_fragments) { if (!s->all_fragments) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment