[FFmpeg-devel] [PATCH] avfilter/aeval: tighten the check for empty expression

James Almer jamrial at gmail.com
Fri Jan 3 18:36:44 EET 2025


Fixes ticket #11395

Signed-off-by: James Almer <jamrial at gmail.com>
---
 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);
     }
-- 
2.47.1



More information about the ffmpeg-devel mailing list