[MPlayer-cvslog] r26504 - trunk/libmpdemux/demux_avs.c

reimar subversion at mplayerhq.hu
Wed Apr 23 09:49:51 CEST 2008


Author: reimar
Date: Wed Apr 23 09:49:51 2008
New Revision: 26504

Log:
Calculate fps as double-precision to make switching to double-precision fps values easier.


Modified:
   trunk/libmpdemux/demux_avs.c

Modified: trunk/libmpdemux/demux_avs.c
==============================================================================
--- trunk/libmpdemux/demux_avs.c	(original)
+++ trunk/libmpdemux/demux_avs.c	Wed Apr 23 09:49:51 2008
@@ -299,7 +299,7 @@ static demuxer_t* demux_open_avs(demuxer
         
         //sh_video->format = get_mmioFOURCC(AVS->video_info);
         sh_video->format = mmioFOURCC('Y', 'V', '1', '2');
-        sh_video->fps = (float) ((float) AVS->video_info->fps_numerator / (float) AVS->video_info->fps_denominator);
+        sh_video->fps = (double) AVS->video_info->fps_numerator / (double) AVS->video_info->fps_denominator;
         sh_video->frametime = 1.0 / sh_video->fps;
         
         sh_video->bih = malloc(sizeof(BITMAPINFOHEADER) + (256 * 4));



More information about the MPlayer-cvslog mailing list