avcodec/escape124: Check depth against num_superblocks
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 21:01:02 +0000 (23:01 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 May 2017 17:42:39 +0000 (19:42 +0200)
commitda617408c80afd2ea67a175fabc0ba546b9b04bc
tree9739d9f0a7b1f6c8a1b1049d96abe92e93ecb249
parentef01061225088c4945f5e309bc695ea5beb2a867
avcodec/escape124: Check depth against num_superblocks

Fixes: runtime error: left shift of 66184 by 15 places cannot be represented in type 'int'
Fixes: 1707/clusterfuzz-testcase-minimized-6502767008940032

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