[vlc-devel] [PATCH 1/2] AVFormat Demuxer : Set video ES frame rate.

Jai Menon jmenon86 at gmail.com
Sun Jun 20 18:38:22 CEST 2010


---
 modules/demux/avformat/demux.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 3b5454b..98d857c 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -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:
-- 
1.7.1




More information about the vlc-devel mailing list