aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolas Bowe <nbowe-at-google.com@ffmpeg.org>2017-12-05 15:11:26 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2017-12-07 23:38:06 +0100
commita749f4864e48ce31dff4028018bff84fb8fca218 (patch)
treecfbe293d994e9df99359b3ea13dae5a3d3a9b41f
parentc147aefc3ecd30a9ee9dff126251179d93d064fd (diff)
downloadffmpeg-a749f4864e48ce31dff4028018bff84fb8fca218.tar.gz
avcodec/extract_extradata_bsf: Fix leak discovered via fuzzing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 5a412a5c3cc216ae1d15e6b884bda7214b73a5b0) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/extract_extradata_bsf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/extract_extradata_bsf.c b/libavcodec/extract_extradata_bsf.c
index ed6509c681..d40907a675 100644
--- a/libavcodec/extract_extradata_bsf.c
+++ b/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,
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];