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

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26504 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-04-23 07:49:51 +00:00
parent 36add9a774
commit 4fd37efa40
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ static demuxer_t* demux_open_avs(demuxer_t* 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));