changeset 25783:8d46379da327

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.
author iive
date Sat, 19 Jan 2008 23:19:41 +0000
parents aac51b420d89
children 8748c4d5cd0e
files mencoder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mencoder.c	Sat Jan 19 18:12:10 2008 +0000
+++ b/mencoder.c	Sat Jan 19 23:19:41 2008 +0000
@@ -757,7 +757,7 @@
 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;
 }