diff options
author | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-19 23:19:41 +0000 |
---|---|---|
committer | iive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-19 23:19:41 +0000 |
commit | 27edd5ed7f2f51fc84d818788c0e67caa449df9a (patch) | |
tree | 73ab7cd397686fbea0aed376ca2b5b2b9341d79f | |
parent | 5558291ae3ffed87427a3c76b9f2a6a503f3701a (diff) |
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
-rw-r--r-- | mencoder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mencoder.c b/mencoder.c index 92722ca7e1..d5e223427c 100644 --- a/mencoder.c +++ b/mencoder.c @@ -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; } |