[MPlayer-cvslog] CVS: main/libmpdemux demux_lavf.c,1.25,1.26

Michael Niedermayer CVS syncmail at mplayerhq.hu
Wed Feb 8 02:19:16 CET 2006


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv14245

Modified Files:
	demux_lavf.c 
Log Message:
10l 1000 fps fix


Index: demux_lavf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_lavf.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- demux_lavf.c	7 Feb 2006 20:22:44 -0000	1.25
+++ demux_lavf.c	8 Feb 2006 01:19:13 -0000	1.26
@@ -273,8 +273,8 @@
             sh_video->video.dwScale= codec->frame_rate_base;
 #endif
             }
-            sh_video->fps=(float)sh_video->video.dwRate/(float)sh_video->video.dwScale;
-            sh_video->frametime=(float)sh_video->video.dwScale/(float)sh_video->video.dwRate;
+            sh_video->fps=av_q2d(st->r_frame_rate);
+            sh_video->frametime=1/av_q2d(st->r_frame_rate);
             sh_video->format = bih->biCompression;
             sh_video->aspect=   codec->width * codec->sample_aspect_ratio.num 
                               / (float)(codec->height * codec->sample_aspect_ratio.den);




More information about the MPlayer-cvslog mailing list