[FFmpeg-cvslog] lavc/libx264: Cast bit_rate to int64_t to avoid an integer overflow.
Carl Eugen Hoyos
git at videolan.org
Sun Aug 11 00:34:15 EEST 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sat Aug 10 17:10:58 2019 +0200| [4b1687f23c133599f38e5f47433619b3db2e368d] | committer: Carl Eugen Hoyos
lavc/libx264: Cast bit_rate to int64_t to avoid an integer overflow.
Fixes ticket #8071.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b1687f23c133599f38e5f47433619b3db2e368d
---
libavcodec/libx264.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 01f9455e20..eeffb83140 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list