avcodec/cdxl: Check format parameter
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 May 2017 20:24:52 +0000 (22:24 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 6 May 2017 21:23:39 +0000 (23:23 +0200)
commite1b60aad77c27ed5d4dfc11e5e6a05a38c70489d
treed7e6818a5f0d97016b90dc48d0af8695d29a2cbf
parent277e397eb5964999bd76909f52d4bd3350289c22
avcodec/cdxl: Check format parameter

Fixes out of array access
Fixes: 1378/clusterfuzz-testcase-minimized-5715088008806400

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