]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ogg.c: theora decoding fix (one of the header fields changed in alpha3).
authorGildas Bazin <gbazin@videolan.org>
Wed, 28 Apr 2004 17:57:16 +0000 (17:57 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 28 Apr 2004 17:57:16 +0000 (17:57 +0000)
modules/demux/ogg.c

index 96b37c54ce1eb3e476f1c2a83b46d8cf451d0abf..4eb9cc2beca8f13b027501a0cb2fc8a4b195bab6 100644 (file)
@@ -1290,11 +1290,13 @@ static void Ogg_ReadTheoraHeader( logical_stream_t *p_stream,
     i_fps_denominator = bs_read( &bitstream, 32 );
     bs_read( &bitstream, 24 ); /* aspect_numerator */
     bs_read( &bitstream, 24 ); /* aspect_denominator */
-    i_keyframe_frequency_force = 1 << bs_read( &bitstream, 5 );
+
     bs_read( &bitstream, 8 ); /* colorspace */
     p_stream->fmt.i_bitrate = bs_read( &bitstream, 24 );
     bs_read( &bitstream, 6 ); /* quality */
 
+    i_keyframe_frequency_force = 1 << bs_read( &bitstream, 5 );
+
     /* granule_shift = i_log( frequency_force -1 ) */
     p_stream->i_theora_keyframe_granule_shift = 0;
     i_keyframe_frequency_force--;