summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-08-25 09:42:40 +0200
committerAnton Khirnov <anton@khirnov.net>2022-08-29 15:42:11 +0200
commit4a4a206304e1d168e9a839d1a9c426e459343322 (patch)
tree0b183e1cbec999d679188bb9280d9a7bf9e36988 /fftools
parentc97bb940c28a49ec36d9e7f0514ed1c3403384a9 (diff)
fftools/ffmpeg_filter: remove an always-true check
ost->enc is always non-NULL here, since - this code is never called for streamcopy - opening the output file will fail if an encoder cannot be found, so filters are never initialized
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg_filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c
index 4e2787eba2..e9479018e4 100644
--- a/fftools/ffmpeg_filter.c
+++ b/fftools/ffmpeg_filter.c
@@ -105,7 +105,7 @@ static const char *choose_pix_fmts(OutputFilter *ofilter, AVBPrint *bprint)
if (ost->enc_ctx->pix_fmt != AV_PIX_FMT_NONE) {
return av_get_pix_fmt_name(choose_pixel_fmt(ost->enc, ost->enc_ctx->pix_fmt,
ost->enc_ctx->strict_std_compliance));
- } else if (ost->enc && ost->enc->pix_fmts) {
+ } else if (ost->enc->pix_fmts) {
const enum AVPixelFormat *p;
p = ost->enc->pix_fmts;