avfilter/asrc_aevalsrc: fix return code, 2nd try

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-04-12 12:02:06 +02:00
parent fd6228e657
commit 3d7d819aad
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}