changeset 17556:e3f1229395b1

10l 1000 fps fix
author michael
date Wed, 08 Feb 2006 01:19:13 +0000
parents b56c246ca8c0
children 3f863d1d8b43
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Tue Feb 07 23:49:44 2006 +0000
+++ b/libmpdemux/demux_lavf.c	Wed Feb 08 01:19:13 2006 +0000
@@ -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);