History

avfilter/aeval: tighten the check for empty expression

Fixes ticket #11395

James Almer committed 1 year ago

Commit e2624111 parent 9d9ac8e1 file · +1 −1Browse files

Unified · Split

libavfilter/aeval.c+1−1
@@ -114,7 +114,7 @@ static int parse_channel_expressions(AVFilterContext *ctx, · 113 unmodified lines
114114 if (!args1)
115115 return AVERROR(ENOMEM);
116116
117− if (!eval->exprs) {
117+ if (!eval->exprs || !*eval->exprs) {
118118 av_log(ctx, AV_LOG_ERROR, "Channels expressions list is empty\n");
119119 return AVERROR(EINVAL);
120120 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t