summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-05-10 13:50:13 +0200
committerPaul B Mahol <onemda@gmail.com>2023-05-10 13:56:34 +0200
commit2de30e7f8cb5c26ca16a122c0ababb2a244b7ffe (patch)
tree470b3dbf07bed022f73dc7c4569da47e2cf083b0 /libavfilter
parentffd275a7e065e1e7fbf57c9dbbb2955dd72b8481 (diff)
downloadffmpeg-2de30e7f8cb5c26ca16a122c0ababb2a244b7ffe.tar.gz
avfilter/af_join: fix leak on error
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_join.c2
1 files changed, 1 insertions, 1 deletions
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;