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>
pull/357/head
Thierry Foucu 5 years ago committed by Michael Niedermayer
parent d5422a14e2
commit 3dc24b3379
  1. 1
      libavcodec/mlp_parser.c

@ -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;

Loading…
Cancel
Save