[FFmpeg-cvslog] avfilter/aeval: tighten the check for empty expression
James Almer
git at videolan.org
Sun Jan 5 05:34:22 EET 2025
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jan 3 13:34:35 2025 -0300| [e262411f329d63bcd36fbf4ac666629530ffec90] | committer: James Almer
avfilter/aeval: tighten the check for empty expression
Fixes ticket #11395
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e262411f329d63bcd36fbf4ac666629530ffec90
---
libavfilter/aeval.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/aeval.c b/libavfilter/aeval.c
index 0e7ba8df80..45813dada6 100644
--- a/libavfilter/aeval.c
+++ b/libavfilter/aeval.c
@@ -114,7 +114,7 @@ static int parse_channel_expressions(AVFilterContext *ctx,
if (!args1)
return AVERROR(ENOMEM);
- if (!eval->exprs) {
+ if (!eval->exprs || !*eval->exprs) {
av_log(ctx, AV_LOG_ERROR, "Channels expressions list is empty\n");
return AVERROR(EINVAL);
}
More information about the ffmpeg-cvslog
mailing list