OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd4901
)
avfilter: dont crash on filters with NULL instance names.
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 6 Sep 2011 20:16:26 +0000
(22:16 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 6 Sep 2011 20:23:15 +0000
(22:23 +0200)
Found-by: Rolf Siegrist
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/avfiltergraph.c
patch
|
blob
|
history
diff --git
a/libavfilter/avfiltergraph.c
b/libavfilter/avfiltergraph.c
index
075e156
..
2997bbe
100644
(file)
--- a/
libavfilter/avfiltergraph.c
+++ b/
libavfilter/avfiltergraph.c
@@
-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)