[FFmpeg-devel] [PATCH] lavc/qsvenc: set BRCParamMultiplier to aviod BRC overflow
Carl Eugen Hoyos
ceffmpeg at gmail.com
Fri Jan 11 14:18:33 EET 2019
2019-01-11 13:09 GMT+01:00, Zhong Li <zhong.li at intel.com>:
> + //libmfx BRC parameters are 16 bits thus maybe overflow, then
> BRCParamMultiplier is needed
> + target_bitrate_kbps = avctx->bit_rate / 1000;
> + max_bitrate_kbps = avctx->rc_max_rate / 1000;
> + brc_param_multiplier = (FFMAX(target_bitrate_kbps, max_bitrate_kbps) +
> 0x10000) / 0x10000;
How will this behave if the user sets 100MBit?
Carl Eugen
More information about the ffmpeg-devel
mailing list