avcodec/mlpdec: Check that there is enough data for headers
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 May 2017 21:13:38 +0000 (23:13 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 13 May 2017 21:15:13 +0000 (23:15 +0200)
commite3e51f8c14d22ae11684dcfe58df355f0f9e6401
treef1f11c482fba53f7d52fce2b1bd89ae3e1389ce7
parent9351a156de724edb69ba6e1f05884fe806a13a21
avcodec/mlpdec: Check that there is enough data for headers

Fixes: out of array access
Fixes: 1541/clusterfuzz-testcase-minimized-6403410590957568

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