libavcodec/mlp_parser.c: fix a use_of_uninitialized_value in target_dec_fuzzer.

the target_dec_fuzzer is checking for the avpkt.data pointer but if the
mlp parser cannot combine the frame, the poutbuf is not set.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Thierry Foucu 2020-06-04 13:03:15 -07:00 committed by Michael Niedermayer
parent d5422a14e2
commit 3dc24b3379

View File

@ -64,6 +64,7 @@ static int mlp_parse(AVCodecParserContext *s,
s->key_frame = 0;
*poutbuf_size = 0;
*poutbuf = NULL;
if (buf_size == 0)
return 0;