# HG changeset patch # User reimar # Date 1234975752 0 # Node ID 15e7abed4291e63175893bde2e6742787c5b16c5 # Parent 06dcdfd38e6d750f011c8002c35b274c7d42d3e4 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 diff -r 06dcdfd38e6d -r 15e7abed4291 libvo/vo_yuv4mpeg.c --- 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;