avcodec/extract_extradata_bsf: Fix leak discovered via fuzzing

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
pull/325/head
Nikolas Bowe 7 years ago committed by Luca Barbato
parent 87d5686151
commit aaf7fd1680
  1. 2
      libavcodec/extract_extradata_bsf.c

@ -78,7 +78,7 @@ static int extract_extradata_h2645(AVBSFContext *ctx, AVPacket *pkt,
ret = ff_h2645_packet_split(&h2645_pkt, pkt->data, pkt->size, ret = ff_h2645_packet_split(&h2645_pkt, pkt->data, pkt->size,
ctx, 0, 0, ctx->par_in->codec_id); ctx, 0, 0, ctx->par_in->codec_id);
if (ret < 0) if (ret < 0)
return ret; goto fail;
for (i = 0; i < h2645_pkt.nb_nals; i++) { for (i = 0; i < h2645_pkt.nb_nals; i++) {
H2645NAL *nal = &h2645_pkt.nals[i]; H2645NAL *nal = &h2645_pkt.nals[i];

Loading…
Cancel
Save