From 3d7d819aad52581c39aa3978bf9ae6d3c189e5a9 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 12 Apr 2013 12:02:06 +0200 Subject: [PATCH] avfilter/asrc_aevalsrc: fix return code, 2nd try Found-by: ubitux Signed-off-by: Michael Niedermayer --- libavfilter/asrc_aevalsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/asrc_aevalsrc.c b/libavfilter/asrc_aevalsrc.c index f81fb2dd68..6e338ad1d6 100644 --- a/libavfilter/asrc_aevalsrc.c +++ b/libavfilter/asrc_aevalsrc.c @@ -91,7 +91,7 @@ static int init(AVFilterContext *ctx) if (!args1) { av_log(ctx, AV_LOG_ERROR, "Channels expressions list is empty\n"); - ret = args1 ? AVERROR(ENOMEM) : AVERROR(EINVAL); + ret = eval->exprs ? AVERROR(ENOMEM) : AVERROR(EINVAL); goto end; }