mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
Use the same code to convert fps in float to fraction as used in mencoder,
it ensures all the common frame rates work right. If this causes issues, it should be changed in the same way in mencoder.c git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28650 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
549c10074b
commit
73c3ff74e0
@ -102,7 +102,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||
{
|
||||
AVRational pixelaspect = av_div_q((AVRational){d_width, d_height},
|
||||
(AVRational){width, height});
|
||||
AVRational fps_frac = av_d2q(vo_fps, INT_MAX);
|
||||
AVRational fps_frac = av_d2q(vo_fps, vo_fps * 1001 + 2);
|
||||
if (image_width == width && image_height == height &&
|
||||
image_fps == vo_fps && vo_config_count)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user