aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-25 09:40:42 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-29 15:42:11 +0200
commitc97bb940c28a49ec36d9e7f0514ed1c3403384a9 (patch)
tree904364609f925f7cbc2081166d32c1282002e4b4
parent7c8737548f5426a4b55fdb8771775e9562c8828c (diff)
downloadffmpeg-c97bb940c28a49ec36d9e7f0514ed1c3403384a9.tar.gz
fftools/ffmpeg_filter: remove an always-false check
This code cannot be triggered, since after 90944ee3ab7 opening the output file will abort if an encoder cannot be found and streamcopy was not explicitly requested.
-rw-r--r--fftools/ffmpeg_filter.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 16622e49c1..4e2787eba2 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -1095,14 +1095,6 @@ int configure_filtergraph(FilterGraph *fg)
for (i = 0; i < fg->nb_outputs; i++) {
OutputStream *ost = fg->outputs[i]->ost;
- if (!ost->enc) {
- /* identical to the same check in ffmpeg.c, needed because
- complex filter graphs are initialized earlier */
- av_log(NULL, AV_LOG_ERROR, "Encoder (codec %s) not found for output stream #%d:%d\n",
- avcodec_get_name(ost->st->codecpar->codec_id), ost->file_index, ost->index);
- ret = AVERROR(EINVAL);
- goto fail;
- }
if (ost->enc->type == AVMEDIA_TYPE_AUDIO &&
!(ost->enc->capabilities & AV_CODEC_CAP_VARIABLE_FRAME_SIZE))
av_buffersink_set_frame_size(ost->filter->filter,