Commit 694671bc authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/f_sendcmd: consider it an error if there are no commands

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent c0367f78
......@@ -403,6 +403,11 @@ static av_cold int init(AVFilterContext *ctx)
sendcmd->commands_str, ctx)) < 0)
return ret;
if (sendcmd->nb_intervals == 0) {
av_log(ctx, AV_LOG_ERROR, "No commands\n");
return AVERROR(EINVAL);
}
qsort(sendcmd->intervals, sendcmd->nb_intervals, sizeof(Interval), cmp_intervals);
av_log(ctx, AV_LOG_DEBUG, "Parsed commands:\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment