mirror of
https://github.com/mpv-player/mpv
synced 2025-02-23 00:06:56 +00:00
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:
parent
36add9a774
commit
4fd37efa40
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user