Commit 6cdf2931 authored by Gildas Bazin's avatar Gildas Bazin

* modules/demux/ogg.c: theora decoding fix (one of the header fields changed in alpha3).

parent ca1cd7db
......@@ -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--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment