diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2015-10-05 21:49:55 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-10-07 19:45:50 +0300 |
commit | 8b830ee9a26d47b138f12a82085cdb372f407f1e (patch) | |
tree | c7d65f5dfb751292a5bb0a1ed8b9e12993588478 /avconv_filter.c | |
parent | d7a5a178c252b625537adc046392624ad543dea7 (diff) |
avconv: Do not try to configure filter outputs without streams
Prevent a NULL-dereference.
CC: libav-stable@libav.org
Diffstat (limited to 'avconv_filter.c')
-rw-r--r-- | avconv_filter.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/avconv_filter.c b/avconv_filter.c index 976d5214e4..0127580023 100644 --- a/avconv_filter.c +++ b/avconv_filter.c @@ -702,8 +702,12 @@ int configure_filtergraph(FilterGraph *fg) return ret; avfilter_inout_free(&inputs); - for (cur = outputs, i = 0; cur; cur = cur->next, i++) - configure_output_filter(fg, fg->outputs[i], cur); + for (cur = outputs, i = 0; cur; cur = cur->next, i++) { + OutputFilter *ofilter = fg->outputs[i]; + if (ofilter->ost) + configure_output_filter(fg, ofilter, cur); + } + avfilter_inout_free(&outputs); if ((ret = avfilter_graph_config(fg->graph, NULL)) < 0) |