avcodec/xwddec: Check bpp more completely
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 May 2017 16:50:49 +0000 (18:50 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 May 2017 17:32:33 +0000 (19:32 +0200)
commit441026fcb13ac23aa10edc312bdacb6445a0ad06
tree5e8390e19e7a8ed5254f4bd6ee9bd6f71ae1975d
parenta5e0dbf530d447f36099aed575b34e9258c5d75a
avcodec/xwddec: Check bpp more completely

Fixes out of array access
Fixes: 1399/clusterfuzz-testcase-minimized-4866094172995584

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