avcodec/utils: Fix signed integer overflow in rc_initial_buffer_occupancy initialization
authorVitaly Buka <vitalybuka-at-google.com@ffmpeg.org>
Sun, 20 Aug 2017 18:56:47 +0000 (11:56 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 23 Aug 2017 01:17:11 +0000 (03:17 +0200)
commit8c2bb10ddfef1f151b9455d152c9aca91140a4b0
treee0a174f0d7fef9de4d5cc60dd38120eaeba4a6a6
parentf3913dcc06854dbaf90890fa5853638e057b9bb1
avcodec/utils: Fix signed integer overflow in rc_initial_buffer_occupancy initialization

Signed integer overflow is undefined behavior.
Detected with clang and -fsanitize=signed-integer-overflow

Signed-off-by: Vitaly Buka <vitalybuka@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c