Skip to content

Commit 160b880

Browse files
author
reimar
committed
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
1 parent b3406c7 commit 160b880

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libmpdemux/video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ switch(video_codec){
318318

319319
// display info:
320320
sh_video->format=picture.mpeg1?0x10000001:0x10000002; // mpeg video
321-
sh_video->fps=picture.fps;
321+
sh_video->fps=picture.fps * picture.frame_rate_extension_n / picture.frame_rate_extension_d;
322322
if(!sh_video->fps){
323323
sh_video->frametime=0;
324324
} else {

0 commit comments

Comments
 (0)