mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
fftools/ffmpeg_filter: reject filtergraphs with zero outputs
Nothing useful can be done with them currently.
This commit is contained in:
parent
a7aa05c599
commit
b1a213ab5d
@ -845,6 +845,12 @@ FilterGraph *fg_create(char *graph_desc)
|
||||
ofilter->name = describe_filter_link(fg, cur, 0);
|
||||
}
|
||||
|
||||
if (!fg->nb_outputs) {
|
||||
av_log(fg, AV_LOG_FATAL, "A filtergraph has zero outputs, this is not supported\n");
|
||||
ret = AVERROR(ENOSYS);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
fail:
|
||||
avfilter_inout_free(&inputs);
|
||||
avfilter_inout_free(&outputs);
|
||||
|
Loading…
Reference in New Issue
Block a user