avcodec/hevc_ps: Check log2_sao_offset_scale_*
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Jan 2018 02:15:23 +0000 (03:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 30 Jan 2018 21:08:32 +0000 (22:08 +0100)
commit4a75a75c62efc645ec28444e4675c325b8f2bb1a
treec6a06b09c831544c0463c4dc9157716d679b315e
parent782e066e3e3d8015d6d64c47cda0925c10aebe08
avcodec/hevc_ps: Check log2_sao_offset_scale_*

Fixes: 4868/clusterfuzz-testcase-minimized-6236542906400768
Fixes: runtime error: shift exponent 126 is too large for 32-bit type 'int'

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