mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-05 14:26:17 +00:00
lavc/libx264: Cast cpb bit_rates to int64_t to avoid an integer overflow.
Fixes remaining part of ticket #8071 on next version bump.
This commit is contained in:
parent
098ed8a73e
commit
690cab3232
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user