[MPlayer-cvslog] r28650 - trunk/libvo/vo_yuv4mpeg.c

reimar subversion at mplayerhq.hu
Wed Feb 18 17:49:13 CET 2009


Author: reimar
Date: Wed Feb 18 17:49:12 2009
New Revision: 28650

Log:
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

Modified:
   trunk/libvo/vo_yuv4mpeg.c

Modified: trunk/libvo/vo_yuv4mpeg.c
==============================================================================
--- trunk/libvo/vo_yuv4mpeg.c	Wed Feb 18 15:58:06 2009	(r28649)
+++ trunk/libvo/vo_yuv4mpeg.c	Wed Feb 18 17:49:12 2009	(r28650)
@@ -102,7 +102,7 @@ static int config(uint32_t width, uint32
 {
 	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;



More information about the MPlayer-cvslog mailing list