avcodec/mlpdec: Do not leave a invalid num_primitive_matrices in the context
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 May 2017 23:23:01 +0000 (01:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 May 2017 23:24:11 +0000 (01:24 +0200)
commit64ea4d102a070b95832ae4a751688f87da7760a2
tree5250a84dc3971a354d5ce24dfa73b97ef80c9f76
parent0cc6dd1b817bc4510714dd99122625d93909290a
avcodec/mlpdec: Do not leave a invalid num_primitive_matrices in the context

Fixes: runtime error: index 8 out of bounds for type 'uint8_t [8]'
Fixes: 1699/clusterfuzz-testcase-minimized-6327177438035968

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