[FFmpeg-cvslog] avfilter/af_join: fix leak on error

Paul B Mahol git at videolan.org
Wed May 10 15:03:09 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed May 10 13:50:13 2023 +0200| [2de30e7f8cb5c26ca16a122c0ababb2a244b7ffe] | committer: Paul B Mahol

avfilter/af_join: fix leak on error

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2de30e7f8cb5c26ca16a122c0ababb2a244b7ffe
---

 libavfilter/af_join.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c
index 605d73d2cc..af924b7ec1 100644
--- a/libavfilter/af_join.c
+++ b/libavfilter/af_join.c
@@ -531,7 +531,7 @@ FF_DISABLE_DEPRECATION_WARNINGS
 FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     if ((ret = av_channel_layout_copy(&frame->ch_layout, &outlink->ch_layout)) < 0)
-        return ret;
+        goto fail;
     frame->sample_rate    = outlink->sample_rate;
     frame->format         = outlink->format;
     frame->pts            = s->input_frames[0]->pts;



More information about the ffmpeg-cvslog mailing list