Browse Source

avcodec/extract_extradata_bsf: Fix leak discovered via fuzzing

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5a412a5c3c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.3.6
Nikolas Bowe Michael Niedermayer 8 years ago
parent
commit
01ab4117dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/extract_extradata_bsf.c

+ 1
- 1
libavcodec/extract_extradata_bsf.c View File

@@ -78,7 +78,7 @@ static int extract_extradata_h2645(AVBSFContext *ctx, AVPacket *pkt,
ret = ff_h2645_packet_split(&h2645_pkt, pkt->data, pkt->size,
ctx, 0, 0, ctx->par_in->codec_id, 1);
if (ret < 0)
return ret;
goto fail;

for (i = 0; i < h2645_pkt.nb_nals; i++) {
H2645NAL *nal = &h2645_pkt.nals[i];


Loading…
Cancel
Save