[MPlayer-cvslog] r30683 - trunk/libmpdemux/video.c

reimar subversion at mplayerhq.hu
Sun Feb 21 15:43:36 CET 2010


Author: reimar
Date: Sun Feb 21 15:43:36 2010
New Revision: 30683

Log:
Fix fps output with -identify when frame rate extension is used for MPEG-2

Modified:
   trunk/libmpdemux/video.c

Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c	Sun Feb 21 15:05:51 2010	(r30682)
+++ trunk/libmpdemux/video.c	Sun Feb 21 15:43:36 2010	(r30683)
@@ -318,7 +318,7 @@ mpeg_header_parser:
 
    // display info:
    sh_video->format=picture.mpeg1?0x10000001:0x10000002; // mpeg video
-   sh_video->fps=picture.fps;
+   sh_video->fps=picture.fps * picture.frame_rate_extension_n / picture.frame_rate_extension_d;
    if(!sh_video->fps){
      sh_video->frametime=0;
    } else {


More information about the MPlayer-cvslog mailing list