]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ogg.c: fill-in frame rate info in es_format_t.
authorGildas Bazin <gbazin@videolan.org>
Mon, 16 May 2005 15:09:58 +0000 (15:09 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 16 May 2005 15:09:58 +0000 (15:09 +0000)
modules/demux/ogg.c

index f4043000b7ebcbe947f6563c2e7557ad2b491d0a..80d020e4a297b8b144a8525d60dcf004096f48ca 100644 (file)
@@ -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 =