avcodec/adpcm: XA: Check shift similar to filter
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 31 May 2020 12:59:02 +0000 (14:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jun 2020 20:01:12 +0000 (22:01 +0200)
commit6d96bae9c480e020e9f51fabd5642d7ae6020943
tree0ef53378719da8eceae0753cce8200a96dbc715c
parentbd6336b9702fc36683acda9ef1d70a6b038d179c
avcodec/adpcm: XA: Check shift similar to filter

Fixes: negative shift
Fixes: 22499/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_XA_fuzzer-5765452130418688

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