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

* modules/demux/ogg.c: fill-in frame rate info in es_format_t.

parent 1152f57a
......@@ -870,6 +870,9 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
msg_Dbg( p_demux, "found video header of type: %.4s",
(char *)&p_stream->fmt.i_codec );
p_stream->fmt.video.i_frame_rate = 10000000;
p_stream->fmt.video.i_frame_rate_base =
GetQWLE((oggpacket.packet+164));
p_stream->f_rate = 10000000.0 /
GetQWLE((oggpacket.packet+164));
p_stream->fmt.video.i_bits_per_pixel =
......@@ -969,6 +972,9 @@ static int Ogg_FindLogicalStreams( demux_t *p_demux )
msg_Dbg( p_demux, "found video header of type: %.4s",
(char *)&p_stream->fmt.i_codec );
p_stream->fmt.video.i_frame_rate = 10000000;
p_stream->fmt.video.i_frame_rate_base =
GetQWLE(&st->time_unit);
p_stream->f_rate = 10000000.0 /
GetQWLE(&st->time_unit);
p_stream->fmt.video.i_bits_per_pixel =
......
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