avcodec/hevc_ps: Fix integer overflow with beta/tc offsets
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 30 Jun 2017 14:23:32 +0000 (16:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 00:50:01 +0000 (02:50 +0200)
commit665885bfc18904fe30500f30d978580cd2e74f68
tree3b0711c3d87d8a27467a8649eea3acd51d61aec9
parent7807d2478bfde81a34412dd4f51cc0a9f3a6760f
avcodec/hevc_ps: Fix integer overflow with beta/tc offsets

Fixes: runtime error: signed integer overflow: 2113929216 * 2 cannot be represented in type 'int'
Fixes: 2422/clusterfuzz-testcase-minimized-5242114713583616

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit de54a37c1dfa2817b5838720fac44e82312ccbfd)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_ps.c