ffmpeg | branch: master | James Almer <jamr...@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 <jamr...@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);
     }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to