diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-09-24 23:03:32 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-09-24 23:08:45 +0100 |
commit | 581b4125aa187f2cf848d7a27e6128573c80dc64 (patch) | |
tree | 90a4674b8396aa6437daedf7146ff927f5772457 | |
parent | dc58e33dd35e1a216cdc1a629d1ea8ee4429fbbb (diff) | |
download | ffmpeg-581b4125aa187f2cf848d7a27e6128573c80dc64.tar.gz |
lavc/h264_levels: Avoid integer overflow in bitrate
Fixes CID #1439656.
-rw-r--r-- | libavcodec/h264_levels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_levels.c b/libavcodec/h264_levels.c index 6b4e18a914..737b7dcf06 100644 --- a/libavcodec/h264_levels.c +++ b/libavcodec/h264_levels.c @@ -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) |