summaryrefslogtreecommitdiffstats
path: root/libmpdemux/video.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-21 14:43:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-21 14:43:36 +0000
commit160b880c4fd10cec41ba2c14c846d0a7e7f21048 (patch)
tree6c0452c31089164fd6b877bcefb738fa7245a847 /libmpdemux/video.c
parentb3406c7d67563c84655a07b778a5be15846b1c24 (diff)
downloadmpv-160b880c4fd10cec41ba2c14c846d0a7e7f21048.tar.bz2
mpv-160b880c4fd10cec41ba2c14c846d0a7e7f21048.tar.xz
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
Diffstat (limited to 'libmpdemux/video.c')
-rw-r--r--libmpdemux/video.c2
1 files changed, 1 insertions, 1 deletions
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 {