changeset 3964:66a7b9ab9e09 libavformat

Visible width/height fields were added in Theora 3.2
author conrad
date Wed, 01 Oct 2008 14:43:08 +0000
parents dbe779f54647
children adbe373e6e79
files oggparsetheora.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;