[MPlayer-cvslog] r25811 - trunk/mencoder.c
iive
subversion at mplayerhq.hu
Sun Jan 20 00:19:42 CET 2008
Author: iive
Date: Sun Jan 20 00:19:41 2008
New Revision: 25811
Log:
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.
Modified:
trunk/mencoder.c
Modified: trunk/mencoder.c
==============================================================================
--- trunk/mencoder.c (original)
+++ trunk/mencoder.c Sun Jan 20 00:19:41 2008
@@ -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;
}
More information about the MPlayer-cvslog
mailing list