mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-29 02:33:04 +00:00
avfilter: dont crash on filters with NULL instance names.
Found-by: Rolf Siegrist Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2fd4901921
commit
c0323b9c9b
@ -272,7 +272,7 @@ int avfilter_graph_send_command(AVFilterGraph *graph, const char *target, const
|
||||
|
||||
for (i = 0; i < graph->filter_count; i++) {
|
||||
AVFilterContext *filter = graph->filters[i];
|
||||
if(!strcmp(target, "all") || !strcmp(target, filter->name) || !strcmp(target, filter->filter->name)){
|
||||
if(!strcmp(target, "all") || (filter->name && !strcmp(target, filter->name)) || !strcmp(target, filter->filter->name)){
|
||||
r = avfilter_process_command(filter, cmd, arg, res, res_len, flags);
|
||||
if(r != AVERROR(ENOSYS)) {
|
||||
if((flags & AVFILTER_CMD_FLAG_ONE) || r<0)
|
||||
|
Loading…
Reference in New Issue
Block a user