[vlc-commits] commit: AVFormat Demuxer : Set video ES frame rate. (Jai Menon )

git at videolan.org git at videolan.org
Thu Jun 24 12:30:23 CEST 2010


vlc/vlc-1.1 | branch: master | Jai Menon <jmenon86 at gmail.com> | Sun Jun 20 22:26:22 2010 +0530| [ab369de962961f62a9bfba1bb1caa357b914a2a5] | committer: Jean-Baptiste Kempf 

AVFormat Demuxer : Set video ES frame rate.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 1afc9d6656e7e6a931d80f60efa1efdfd76dd7ff)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ab369de962961f62a9bfba1bb1caa357b914a2a5
---

 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:



More information about the vlc-commits mailing list