forked from FFmpeg/FFmpeg
lavc/h264_levels: Avoid integer overflow in bitrate
Fixes CID #1439656.
This commit is contained in:
parent
dc58e33dd3
commit
581b4125aa
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ const H264LevelDescriptor *ff_h264_guess_level(int profile_idc,
|
|||
if (level->constraint_set3_flag && no_cs3f)
|
||||
continue;
|
||||
|
||||
if (bitrate > level->max_br * h264_get_br_factor(profile_idc))
|
||||
if (bitrate > (int64_t)level->max_br * h264_get_br_factor(profile_idc))
|
||||
continue;
|
||||
|
||||
if (width_mbs * height_mbs > level->max_fs)
|
||||
|
|
Loading…
Add table
Reference in a new issue