[FFmpeg-cvslog] avfilter/asrc_aevalsrc: fix return code, 2nd try
Michael Niedermayer
git at videolan.org
Fri Apr 12 12:08:03 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 12 12:02:06 2013 +0200| [3d7d819aad52581c39aa3978bf9ae6d3c189e5a9] | committer: Michael Niedermayer
avfilter/asrc_aevalsrc: fix return code, 2nd try
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d7d819aad52581c39aa3978bf9ae6d3c189e5a9
---
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 f81fb2d..6e338ad 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;
}
More information about the ffmpeg-cvslog
mailing list