# HG changeset patch # User michael # Date 1153133093 0 # Node ID b43d45362038210b7c336305f3c9bfc001724afa # Parent 9aacd9410e5722cfec0fdd9bb543caa4f47f7b61 fix playback of theora.ogg on mphq patch by (matthieu castet %% castet dat matthieu ot free dat fr %%) diff -r 9aacd9410e57 -r b43d45362038 vp3.c --- a/vp3.c Mon Jul 17 09:51:59 2006 +0000 +++ b/vp3.c Mon Jul 17 10:44:53 2006 +0000 @@ -2628,8 +2628,10 @@ skip_bits(gb, 24); /* frame height */ } + if (s->theora >= 0x030200) { skip_bits(gb, 8); /* offset x */ skip_bits(gb, 8); /* offset y */ + } skip_bits(gb, 32); /* fps numerator */ skip_bits(gb, 32); /* fps denumerator */ @@ -2818,6 +2820,8 @@ } if(8*op_bytes != get_bits_count(&gb)) av_log(avctx, AV_LOG_ERROR, "%d bits left in packet %X\n", 8*op_bytes - get_bits_count(&gb), ptype); + if (s->theora < 0x030200) + break; } vp3_decode_init(avctx);