From cdf9f1550628dc7e7767d6b82a7af7bb3d1d6d01 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 14 May 2024 09:03:48 +0200 Subject: [PATCH] avfilter/af_compand: remove pointless indirection --- libavfilter/af_compand.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index ba7c32470e..152b5c8fea 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -252,10 +252,8 @@ static int compand_delay(AVFilterContext *ctx, AVFrame *frame) av_frame_free(&frame); - if (out_frame) { - err = ff_filter_frame(ctx->outputs[0], out_frame); - return err; - } + if (out_frame) + return ff_filter_frame(ctx->outputs[0], out_frame); return 0; }