]> git.sesse.net Git - vlc/commitdiff
Avformat: correctly detect the fps
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Jul 2010 22:19:39 +0000 (00:19 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 20 Jul 2010 22:34:04 +0000 (00:34 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/demux/avformat/demux.c

index 60c9941387c34bfd76fc21922842ab328995a983..4ad3ccbe8280c8a73b3ddc5dc04abfb40efcf976 100644 (file)
@@ -302,7 +302,7 @@ int OpenDemux( vlc_object_t *p_this )
             }
             psz_type = "video";
             fmt.video.i_frame_rate = cc->time_base.den;
-            fmt.video.i_frame_rate_base = cc->time_base.num;
+            fmt.video.i_frame_rate_base = cc->time_base.num * __MAX( cc->ticks_per_frame, 1 );
             break;
 
         case CODEC_TYPE_SUBTITLE: