diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2016-08-03 04:21:41 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-08-12 11:41:58 +0200 |
commit | f6d2fed811dea36c4ebaf991927e44c78eb0aca5 (patch) | |
tree | e7115a8427e594244fe885d2a9dae99c98854831 /avconv.c | |
parent | 602abe77b02f9702c18c2787d208fcfc9d94b70f (diff) | |
download | ffmpeg-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |