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:00 +0000 (02:50 +0200)
commit2b85709bee1678a3a1dfd3e6b03e065eb734a803
tree23566b93e0fb2e34eb7faff695d19b83b6a77bdb
parentd986096963fc8b5b18173678fe2a8c50bb9d3311
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