avcodec/h264_ps: Check delta scale for validity
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Feb 2017 02:51:17 +0000 (03:51 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Feb 2017 14:31:06 +0000 (15:31 +0100)
commitcbd622be997e8307a409efc3b4bbe8765147def2
treeb2c1f51a44cc7f26674627e13c99a3b68f5470d1
parent28dc6e729137ba7927f46ba15c337417b8708fe8
avcodec/h264_ps: Check delta scale for validity

Fixes: signed integer overflow: 5 + 2147483646 cannot be represented in type 'int'
Fixes: 634/clusterfuzz-testcase-5285420445204480

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