vp3: fix compilation with a disabled theora

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-01-21 19:04:34 +01:00
parent ed37a566c9
commit 5b95d39ee1
1 changed files with 2 additions and 0 deletions

View File

@ -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) {