aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-21 06:09:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-21 17:57:32 +0200
commit04a5ffa75fdbee4c1622d49185b057d564a155e1 (patch)
tree1620585c9da716a7e367cb950eeda7c36f77fc20
parentc87d7c8a8167f09f1ec6996f52a10bbc8c5b4f90 (diff)
downloadffmpeg-04a5ffa75fdbee4c1622d49185b057d564a155e1.tar.gz
avfilter/vf_xfade: Remove always-false format check
This filter uses ff_set_common_formats_from_list(). Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavfilter/vf_xfade.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index eff8a8b854..b4edcbf1b4 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -1717,10 +1717,6 @@ static int config_output(AVFilterLink *outlink)
XFadeContext *s = ctx->priv;
const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink0->format);
- if (inlink0->format != inlink1->format) {
- av_log(ctx, AV_LOG_ERROR, "inputs must be of same pixel format\n");
- return AVERROR(EINVAL);
- }
if (inlink0->w != inlink1->w || inlink0->h != inlink1->h) {
av_log(ctx, AV_LOG_ERROR, "First input link %s parameters "
"(size %dx%d) do not match the corresponding "