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

reimar subversion at mplayerhq.hu
Sat Mar 27 13:47:26 CET 2010


Author: reimar
Date: Sat Mar 27 13:47:26 2010
New Revision: 30966

Log:
100l, fix frametime calculation for MPEG-2 files with frame rate extension.

Modified:
   trunk/libmpdemux/video.c

Modified: trunk/libmpdemux/video.c
==============================================================================
--- trunk/libmpdemux/video.c	Sat Mar 27 12:31:02 2010	(r30965)
+++ trunk/libmpdemux/video.c	Sat Mar 27 13:47:26 2010	(r30966)
@@ -324,7 +324,7 @@ mpeg_header_parser:
    if(!sh_video->fps){
      sh_video->frametime=0;
    } else {
-     sh_video->frametime=1.0/picture.fps;
+     sh_video->frametime=1.0/sh_video->fps;
    }
    sh_video->disp_w=picture.display_picture_width;
    sh_video->disp_h=picture.display_picture_height;


More information about the MPlayer-cvslog mailing list