1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

Extend the precision of rationale conversion so

it would give proper result for framerate 60000/1001 .
Otherwise framerate restrained encoders like lavc mpeg2video
would refuse to encode, even if -ofps 60000/1001 is given.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25811 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2008-01-19 23:19:41 +00:00
parent 5558291ae3
commit 27edd5ed7f

View File

@ -757,7 +757,7 @@ mux_v->source=sh_video;
mux_v->h.dwSampleSize=0; // VBR
#ifdef USE_LIBAVCODEC
{
AVRational q= av_d2q(force_ofps?force_ofps:sh_video->fps*playback_speed, 30000);
AVRational q= av_d2q(force_ofps?force_ofps:sh_video->fps*playback_speed, 60000);
mux_v->h.dwScale= q.den;
mux_v->h.dwRate = q.num;
}