[FFmpeg-devel] [PATCH 6/7] libkvazaar: Fix setting target bitrate

Arttu Ylä-Outinen arttu.yla-outinen at tut.fi
Mon Sep 28 15:29:33 CEST 2015


On 2015-09-28 15:11, Carl Eugen Hoyos wrote:
> Arttu Ylä-Outinen <arttu.yla-outinen <at> tut.fi> writes:
>
>> The divisor and dividend in the equation had been swapped,
>> making the result the inverse of the actual bitrate.
>>       cfg->framerate =
>> -      (double)(avctx->time_base.num * avctx->ticks_per_frame) /
>> avctx->time_base.den;
>> +      avctx->time_base.den / (double)(avctx->time_base.num *
>> avctx->ticks_per_frame);
> The patch description and the patch do not
> match - framerate != bitrate - or do I misunderstand?

Whoops, it is an error in the description.

- Arttu


More information about the ffmpeg-devel mailing list