summaryrefslogtreecommitdiff
path: root/libavcodec/libx264.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-08-10 17:10:58 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2019-08-10 23:29:58 +0200
commit4b1687f23c133599f38e5f47433619b3db2e368d (patch)
treea6f82fdeaf55f1c0d6af96a000e314ed2b867e34 /libavcodec/libx264.c
parent57987deefcdc779258c61f5b288ce590b36f8234 (diff)
lavc/libx264: Cast bit_rate to int64_t to avoid an integer overflow.
Fixes ticket #8071.
Diffstat (limited to 'libavcodec/libx264.c')
-rw-r--r--libavcodec/libx264.c2
1 files changed, 1 insertions, 1 deletions
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)