diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-05 21:52:49 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-10 12:04:30 +0200 |
commit | 04f8d79c24738bd22253f6a53204855fbfd7794b (patch) | |
tree | 03512ec7a9c186a797d1b18ce25667233510aed5 /libavfilter/vf_scale.c | |
parent | 812a4b86a8b21e5855e895ac10a9d042f4de57a5 (diff) | |
download | ffmpeg-04f8d79c24738bd22253f6a53204855fbfd7794b.tar.gz |
avfilter/vf_scale: Remove always-true checks
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r-- | libavfilter/vf_scale.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 5411289894..993fd18620 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -344,7 +344,6 @@ static int query_formats(AVFilterContext *ctx) enum AVPixelFormat pix_fmt; int ret; - if (ctx->inputs[0]) { const AVPixFmtDescriptor *desc = NULL; formats = NULL; while ((desc = av_pix_fmt_desc_next(desc))) { @@ -357,9 +356,8 @@ static int query_formats(AVFilterContext *ctx) } if ((ret = ff_formats_ref(formats, &ctx->inputs[0]->outcfg.formats)) < 0) return ret; - } - if (ctx->outputs[0]) { - const AVPixFmtDescriptor *desc = NULL; + + desc = NULL; formats = NULL; while ((desc = av_pix_fmt_desc_next(desc))) { pix_fmt = av_pix_fmt_desc_get_id(desc); @@ -371,7 +369,6 @@ static int query_formats(AVFilterContext *ctx) } if ((ret = ff_formats_ref(formats, &ctx->outputs[0]->incfg.formats)) < 0) return ret; - } return 0; } |