]> git.sesse.net Git - vlc/commitdiff
AVFormat Demuxer : Set video ES frame rate.
authorJai Menon <jmenon86@gmail.com>
Sun, 20 Jun 2010 16:38:22 +0000 (22:08 +0530)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 24 Jun 2010 10:20:25 +0000 (12:20 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/avformat/demux.c

index 3b5454b6ec42e5a8ae23f34d51c9eef0969160c2..98d857cbbfb2d3030f2ac54c7f1b89be43b47957 100644 (file)
@@ -281,6 +281,8 @@ int OpenDemux( vlc_object_t *p_this )
                 *fmt.video.p_palette = *(video_palette_t *)cc->palctrl;
             }
             psz_type = "video";
+            fmt.video.i_frame_rate = cc->time_base.den;
+            fmt.video.i_frame_rate_base = cc->time_base.num;
             break;
 
         case CODEC_TYPE_SUBTITLE: