diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index eeffb83140b75a44b11390e8a93ab5003cfa23b9..a99c1f31634a3bcadcfbf42cb6ac2c85607e6670 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -939,8 +939,8 @@ FF_ENABLE_DEPRECATION_WARNINGS if (!cpb_props) return AVERROR(ENOMEM); cpb_props->buffer_size = x4->params.rc.i_vbv_buffer_size * 1000; - cpb_props->max_bitrate = x4->params.rc.i_vbv_max_bitrate * 1000; - cpb_props->avg_bitrate = x4->params.rc.i_bitrate * 1000; + cpb_props->max_bitrate = x4->params.rc.i_vbv_max_bitrate * 1000LL; + cpb_props->avg_bitrate = x4->params.rc.i_bitrate * 1000LL; // Overestimate the reordered opaque buffer size, in case a runtime // reconfigure would increase the delay (which it shouldn't).