diff mbox

[FFmpeg-devel] Fix leak discovered via fuzzing

Message ID 20171205231126.97079-1-nbowe@google.com
State Accepted
Commit 5a412a5c3cc216ae1d15e6b884bda7214b73a5b0
Headers show

Commit Message

Niki Bowe Dec. 5, 2017, 11:11 p.m. UTC
---
 libavcodec/extract_extradata_bsf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Dec. 6, 2017, 5:26 p.m. UTC | #1
On Tue, Dec 05, 2017 at 03:11:26PM -0800, Nikolas Bowe wrote:
> ---
>  libavcodec/extract_extradata_bsf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thanks

[...]
diff mbox

Patch

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