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:
reimar 2009-02-18 16:49:12 +00:00
parent 549c10074b
commit 73c3ff74e0
1 changed files with 1 additions and 1 deletions

View File

@ -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;