summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_filter.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-05-22 09:56:47 +0200
committerAnton Khirnov <anton@khirnov.net>2023-05-31 16:20:19 +0200
commit2262df5e8a5a4ae2c3ac44e0bf970f683270362f (patch)
tree43b10731b0416b70178023f0a08e125e92f56b28 /fftools/ffmpeg_filter.c
parentf3e0a83e8e379ee9b095ccba1a2729e615d17883 (diff)
fftools/ffmpeg_filter: drop unreachable code
Filtergraphs with no inputs are initialized as soon as all their outputs are bound, so this code should not be reachable.
Diffstat (limited to 'fftools/ffmpeg_filter.c')
-rw-r--r--fftools/ffmpeg_filter.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 8f839cc273..340696c989 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1946,17 +1946,6 @@ int fg_transcode_step(FilterGraph *graph, InputStream **best_ist)
int nb_requests, nb_requests_max = 0;
InputStream *ist;
- if (!graph->graph && ifilter_has_all_input_formats(graph)) {
- // graph has not been configured yet, but everything is ready;
- // this can happen for graphs with no inputs, or when some input
- // EOF'ed with zero frames and fallback parameters were used
- ret = configure_filtergraph(graph);
- if (ret < 0) {
- av_log(NULL, AV_LOG_ERROR, "Error reinitializing filters!\n");
- return ret;
- }
- }
-
if (!graph->graph) {
for (int i = 0; i < graph->nb_inputs; i++) {
InputFilter *ifilter = graph->inputs[i];