aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-08-03 04:21:41 +0200
committerLuca Barbato <lu_zero@gentoo.org>2016-08-12 11:41:58 +0200
commitf6d2fed811dea36c4ebaf991927e44c78eb0aca5 (patch)
treee7115a8427e594244fe885d2a9dae99c98854831 /avconv.c
parent602abe77b02f9702c18c2787d208fcfc9d94b70f (diff)
downloadffmpeg-f6d2fed811dea36c4ebaf991927e44c78eb0aca5.tar.gz
avconv: Make sure that inputless filtergraphs are configured
Unbreak `avconv -filter_complex testsrc`. Regression introduced in a3a0230a9870b9018dc7415ae5872784d524cfe5
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 43d67e8d17..59eb3009b1 100644
--- a/avconv.c
+++ b/avconv.c
@@ -766,6 +766,15 @@ static int poll_filters(void)
for (i = 0; i < nb_output_streams; i++) {
int64_t pts = output_streams[i]->sync_opts;
+ if (output_streams[i]->filter && !output_streams[i]->filter->graph->graph &&
+ !output_streams[i]->filter->graph->nb_inputs) {
+ ret = configure_filtergraph(output_streams[i]->filter->graph);
+ if (ret < 0) {
+ av_log(NULL, AV_LOG_ERROR, "Error reinitializing filters!\n");
+ return ret;
+ }
+ }
+
if (!output_streams[i]->filter || output_streams[i]->finished ||
!output_streams[i]->filter->graph->graph)
continue;