mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
lavc/h265_profile_level: Avoid integer overflow in bitrate
Fixes CIDs #1439659 and #1439660.
This commit is contained in:
parent
321294adb7
commit
feb1cf08ab
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ const H265LevelDescriptor *ff_h265_guess_level(const H265RawProfileTierLevel *pt
|
|||
max_br = level->max_br_main;
|
||||
if (!max_br)
|
||||
continue;
|
||||
if (bitrate > profile->cpb_nal_factor * hbr_factor * max_br)
|
||||
if (bitrate > (int64_t)profile->cpb_nal_factor * hbr_factor * max_br)
|
||||
continue;
|
||||
|
||||
if (pic_size < (level->max_luma_ps >> 2))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue