Mercurial > mplayer.hg
changeset 26472:67930b46705d
Calculate fps as double-precision to make switching to double-precision fps values easier.
author | reimar |
---|---|
date | Wed, 23 Apr 2008 07:49:51 +0000 |
parents | f29c190fdb10 |
children | 47864c18ff54 |
files | libmpdemux/demux_avs.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avs.c Tue Apr 22 23:05:27 2008 +0000 +++ b/libmpdemux/demux_avs.c Wed Apr 23 07:49:51 2008 +0000 @@ -299,7 +299,7 @@ //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));