# HG changeset patch # User conrad # Date 1222872188 0 # Node ID 66a7b9ab9e091d1d5fad28e963bea78e90027c32 # Parent dbe779f5464731106f05ef2d842a4cd19d690a45 Visible width/height fields were added in Theora 3.2 diff -r dbe779f54647 -r 66a7b9ab9e09 oggparsetheora.c --- a/oggparsetheora.c Wed Oct 01 12:38:41 2008 +0000 +++ b/oggparsetheora.c Wed Oct 01 14:43:08 2008 +0000 @@ -75,14 +75,15 @@ if (version >= 0x030400) skip_bits(&gb, 100); + if (version >= 0x030200) { width = get_bits_long(&gb, 24); height = get_bits_long(&gb, 24); if ( width <= st->codec->width && width > st->codec->width-16 && height <= st->codec->height && height > st->codec->height-16) avcodec_set_dimensions(st->codec, width, height); - if (version >= 0x030200) skip_bits(&gb, 16); + } st->codec->time_base.den = get_bits_long(&gb, 32); st->codec->time_base.num = get_bits_long(&gb, 32); st->time_base = st->codec->time_base;