diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-20 18:39:21 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-31 16:20:19 +0200 |
commit | f3e0a83e8e379ee9b095ccba1a2729e615d17883 (patch) | |
tree | 396cdea416f64e49e6306d4836636eefd94fa4a5 | |
parent | f8abab673c5494d0fc120e2d27f0e5d49ae3d285 (diff) | |
download | ffmpeg-f3e0a83e8e379ee9b095ccba1a2729e615d17883.tar.gz |
fftools/ffmpeg_enc: stop configuring filters from encoder flush
There is no way for a filtergraph to have all input parameters, yet not
be configured, so this code should not be reachable.
-rw-r--r-- | fftools/ffmpeg_enc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/fftools/ffmpeg_enc.c b/fftools/ffmpeg_enc.c index f023657a07..6c9cce252f 100644 --- a/fftools/ffmpeg_enc.c +++ b/fftools/ffmpeg_enc.c @@ -1172,18 +1172,8 @@ void enc_flush(void) av_log(ost, AV_LOG_WARNING, "Finishing stream without any data written to it.\n"); - if (ost->filter && !fg->graph) { - if (!ifilter_has_all_input_formats(fg)) - continue; - - ret = configure_filtergraph(fg); - if (ret < 0) { - av_log(ost, AV_LOG_ERROR, "Error configuring filter graph\n"); - exit_program(1); - } - - of_output_packet(of, ost->pkt, ost, 1); - } + if (!fg->graph) + continue; ret = enc_open(ost, NULL); if (ret < 0) |