changeset 30924:798e4a2b2571

100l, fix frametime calculation for MPEG-2 files with frame rate extension.
author reimar
date Sat, 27 Mar 2010 12:47:26 +0000
parents 0be6ed163321
children f8939d5b14b5
files libmpdemux/video.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/video.c	Sat Mar 27 11:31:02 2010 +0000
+++ b/libmpdemux/video.c	Sat Mar 27 12:47:26 2010 +0000
@@ -324,7 +324,7 @@
    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;