changeset 30641:b14b32c20935

Fix fps output with -identify when frame rate extension is used for MPEG-2
author reimar
date Sun, 21 Feb 2010 14:43:36 +0000
parents 34e3d7d697d9
children a972c1a4a012
files libmpdemux/video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sun Feb 21 14:05:51 2010 +0000
+++ b/libmpdemux/video.c	Sun Feb 21 14:43:36 2010 +0000
@@ -318,7 +318,7 @@
 
    // 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 {