From 160b880c4fd10cec41ba2c14c846d0a7e7f21048 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 21 Feb 2010 14:43:36 +0000 Subject: Fix fps output with -identify when frame rate extension is used for MPEG-2 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30683 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpdemux') diff --git a/libmpdemux/video.c b/libmpdemux/video.c index bc46c983f9..fc79da6c6e 100644 --- a/libmpdemux/video.c +++ b/libmpdemux/video.c @@ -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 { -- cgit v1.2.3