[FFmpeg-devel] [PATCH] libvpxenc: avoid rollover in settings conversion

Reimar Döffinger Reimar.Doeffinger
Sat Dec 11 22:48:48 CET 2010

On Sat, Dec 11, 2010 at 12:12:25PM -0800, James Zern wrote:
> When converting bitrate values to percentages or buffer sizes to
> milliseconds as required for libvpx avoid rolling over integer values
> by using 64-bit math.
> In these cases output quality would have been adversely effected. As
> an example '-vb 2.2M -maxrate 22M' will roll
> rc_2pass_vbr_maxsection_pct (visible with -loglevel debug).

Strictly speaking the lack of rounding is a bit questionable as well, IMO.

More information about the ffmpeg-devel mailing list