changeset 28615:15e7abed4291

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
author reimar
date Wed, 18 Feb 2009 16:49:12 +0000
parents 06dcdfd38e6d
children e473635bd437
files libvo/vo_yuv4mpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_yuv4mpeg.c	Wed Feb 18 14:58:06 2009 +0000
+++ b/libvo/vo_yuv4mpeg.c	Wed Feb 18 16:49:12 2009 +0000
@@ -102,7 +102,7 @@
 {
 	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;