You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/libx264: Cast bit_rate to int64_t to avoid an integer overflow.
Fixes ticket #8071.
This commit is contained in:
@@ -902,7 +902,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
if (avctx->max_b_frames < 0)
|
||||
avctx->max_b_frames = 0;
|
||||
|
||||
avctx->bit_rate = x4->params.rc.i_bitrate*1000;
|
||||
avctx->bit_rate = x4->params.rc.i_bitrate*1000LL;
|
||||
|
||||
x4->enc = x264_encoder_open(&x4->params);
|
||||
if (!x4->enc)
|
||||
|
Reference in New Issue
Block a user