Commit aaf7fd16 authored by Nikolas Bowe's avatar Nikolas Bowe Committed by Luca Barbato

avcodec/extract_extradata_bsf: Fix leak discovered via fuzzing

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 87d56861
...@@ -78,7 +78,7 @@ static int extract_extradata_h2645(AVBSFContext *ctx, AVPacket *pkt, ...@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment