Commit 581b4125 authored by Mark Thompson's avatar Mark Thompson

lavc/h264_levels: Avoid integer overflow in bitrate

Fixes CID #1439656.
parent dc58e33d
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment