From patchwork Sat Dec 2 20:17:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cosmin Stejerean X-Patchwork-Id: 44870 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a301:b0:181:818d:5e7f with SMTP id x1csp1915746pzk; Sat, 2 Dec 2023 12:17:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IEKcGfxFZ3F9BUls0RbY4wMLaVjOY0cQv6v2fDgCIsN6jDzimLodIMn3CDRm14SD0ktKUmW X-Received: by 2002:a2e:8747:0:b0:2c9:f643:d6c8 with SMTP id q7-20020a2e8747000000b002c9f643d6c8mr333852ljj.95.1701548259795; Sat, 02 Dec 2023 12:17:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701548259; cv=none; d=google.com; s=arc-20160816; b=gutxaNbJdzDkrG9gHjBEHo1luBGfdwflv0EKw5XzpLVzaDHMxHsSkwbc2CmzO44nTG MI2jRX80hVOC1xP0qdmrnzwi4gOM/KpxBYarSjwJ+DanjOL4xYGqQ7wU8vsio7UHmi1U uvVpaoBLr6ZCWKrvtA+GLYCVyJM0i6lHujb2A0pvXwrpbLCX69WcD0wiQ4HMlWJUN15H erpclMPClYFHZw0rakdgYp5xoqqhodq3fe5d/HGfNofdFYdFiK5Ynr1erSwEoWlBjxNo fA6AgK0or9HkWH9zLYmjGSFg2Xltunxr2csXwyD/xZ+XbkUuqGg/5CPoJguh2u62N1EY +ZQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to:from :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:message-id:thread-topic :thread-index:references:in-reply-to:mime-version:date:to :delivered-to; bh=C3xxdNShD5SGDNTegI3nCiEgsqAWpV2utHkwWp/NhLM=; fh=CBS/D0cB4KwqFBY8d8UQ4TY1w6HZ9TulitLE+VqI2+k=; b=H3c8wSVB2BdsWAqkt4LegIRxwSTwAX/SGU+cHumK8YvV9cpH0yPqCd98pZtDqG+ZfO jcCAq8JwfxDcM0SZKV2/MyOGXzfJvbjwooQ+SZkF8oqSmbRZg7q9hC9RTFXYJL7M0caJ jC4LEmjEtFybe+mbqXk9c+DM2YZjd1uYML51XI3BXW4cvy2R84vcY7kzYIdDXNv38bSD O9RO6WRc4Bo6G+IFctr7HZf3NIEmSnPPcpcmL+Blpj/sNXp/wdoqFXV0L+y9jlzzUcZT MjH9R28GS/X68a5FG6pqUg7mI6JrBGLACmMtqi9P9f17Ws67L8Qw9XkM8icvvGUEDEE2 leYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id hp11-20020a1709073e0b00b00a18f0495553si2860689ejc.248.2023.12.02.12.17.39; Sat, 02 Dec 2023 12:17:39 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C8E9768CCB4; Sat, 2 Dec 2023 22:17:25 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a27-237.smtp-out.us-west-2.amazonses.com (a27-237.smtp-out.us-west-2.amazonses.com [54.240.27.237]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A60C168CAA4 for ; Sat, 2 Dec 2023 22:17:18 +0200 (EET) To: =?utf-8?q?ffmpeg-devel=40ffmpeg=2Eorg?= Date: Sat, 2 Dec 2023 20:17:15 +0000 Mime-Version: 1.0 In-Reply-To: <20231202201655.40450-1-cosmin@cosmin.at> References: <20231202201655.40450-1-cosmin@cosmin.at> <20231202201655.40450-2-cosmin@cosmin.at> X-Mailer: Amazon WorkMail Thread-Index: AQHaJVx/pw0LJ5SZTAe6kqN6vnwK6wAAAEGX Thread-Topic: [PATCH v3 1/3] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions X-Original-Mailer: git-send-email 2.42.1 X-Wm-Sent-Timestamp: 1701548235 Message-ID: <0101018c2c2d9cdb-e6505ea7-5210-438b-8801-dd75d12b59ce-000000@us-west-2.amazonses.com> Feedback-ID: 1.us-west-2.An468LAV0jCjQDrDLvlZjeAthld7qrhZr+vow8irkvU=:AmazonSES X-SES-Outgoing: 2023.12.02-54.240.27.237 Subject: [FFmpeg-devel] [PATCH v3 1/3] avfilter/vf_bwdif: consider chroma subsampling when enforcing minimum dimensions X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Cosmin Stejerean via ffmpeg-devel From: Cosmin Stejerean Reply-To: FFmpeg development discussions and patches Cc: =?utf-8?q?Cosmin_Stejerean?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: t0TgCx0ccDnU From: Cosmin Stejerean Fixes #10688 Signed-off-by: Cosmin Stejerean --- libavfilter/vf_bwdif.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_bwdif.c b/libavfilter/vf_bwdif.c index 137cd5ef13..353cd0b61a 100644 --- a/libavfilter/vf_bwdif.c +++ b/libavfilter/vf_bwdif.c @@ -191,13 +191,14 @@ static int config_props(AVFilterLink *link) return ret; } - if (link->w < 3 || link->h < 4) { - av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or 4 lines is not supported\n"); + yadif->csp = av_pix_fmt_desc_get(link->format); + yadif->filter = filter; + + if (AV_CEIL_RSHIFT(link->w, yadif->csp->log2_chroma_w) < 3 || AV_CEIL_RSHIFT(link->h, yadif->csp->log2_chroma_h) < 4) { + av_log(ctx, AV_LOG_ERROR, "Video with planes less than 3 columns or 4 lines is not supported\n"); return AVERROR(EINVAL); } - yadif->csp = av_pix_fmt_desc_get(link->format); - yadif->filter = filter; ff_bwdif_init_filter_line(&s->dsp, yadif->csp->comp[0].depth); return 0; From patchwork Sat Dec 2 20:16:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cosmin Stejerean X-Patchwork-Id: 44868 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a301:b0:181:818d:5e7f with SMTP id x1csp1915653pzk; Sat, 2 Dec 2023 12:17:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGVLp50XFlCeoimnVD2+fHEMc3KroX6jEdZNvACDs3WV2q/3HRuqDc19aZZ+FR76heAGvAQ X-Received: by 2002:a2e:a7c2:0:b0:2c9:e35f:c85 with SMTP id x2-20020a2ea7c2000000b002c9e35f0c85mr1582134ljp.33.1701548241399; Sat, 02 Dec 2023 12:17:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701548241; cv=none; d=google.com; s=arc-20160816; b=oTyluW6WgD8z/6xUawluYPMiA4sqTK5qq89taNG8lRlrPmnZs5GFBzjSiRXosEN55y gJX5R1Q+RPz4ouSIF35jc6unS2ZycRqI/ZqR+gVswCUxfyeFjkQqbQQEAH4HGExFXIgD wNsQJrs1zaUaUR2HroEal589EMKpmKRx0dCuQQPQ4P2yZQmOebLRtKlDbNVQ1QV6Dblb JTOUc7enn+3id0anTVboAUjkbW7DciNJPSdac4e+EUBbfkJIFzg3zbJafs+cJuNh1yk/ j860E6JM43227Re9x5OhYsb3vblK/snnLqA2rv9eEDj7KrvOsm3hheTdttKrJ4oGceym sQAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to:from :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:message-id:thread-topic :thread-index:references:in-reply-to:mime-version:date:to :delivered-to; bh=p+Qqgi7piTZ/EB1/Gt+aUuuWN4b5RF4hyT8i9NV16t4=; fh=CBS/D0cB4KwqFBY8d8UQ4TY1w6HZ9TulitLE+VqI2+k=; b=TwQ7hmTh407/Loe0FQa3AnZjqO0Dp+A+e728UxN56KvWmvYcEjcWEgW6SpjGyLoHBp nOQDF+NzppRgbY6rVFJMrqKTeS/AasNYdtXP5NFtrF1Q3OwQBvzgN4cYYgol7Sen9fyy XTzLNtuDRjpAgib1LJFxoKoW+EUBacYyPaIQxZBhiMEin5s+k89mbaiiQLu4LBNLZ8n9 BrGIP2wVffG4nvYRVA0Mi6Vt20ExphdeL1cnJzr5nv1Awio63ROtRLmo+T6XINlbtt7l lE+2dS7b6IlE9tM2R0LATc7FMyGdLyAP1hUGjOMmM1+V9DXS6B5M96RDZwTIkpp4uGa2 tb2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id va10-20020a17090711ca00b009e6b2845851si2945028ejb.496.2023.12.02.12.17.21; Sat, 02 Dec 2023 12:17:21 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7A56668AAD5; Sat, 2 Dec 2023 22:17:09 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a27-16.smtp-out.us-west-2.amazonses.com (a27-16.smtp-out.us-west-2.amazonses.com [54.240.27.16]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5312368CAA1 for ; Sat, 2 Dec 2023 22:17:02 +0200 (EET) To: =?utf-8?q?ffmpeg-devel=40ffmpeg=2Eorg?= Date: Sat, 2 Dec 2023 20:16:59 +0000 Mime-Version: 1.0 In-Reply-To: <20231202201655.40450-1-cosmin@cosmin.at> References: <20231202201655.40450-1-cosmin@cosmin.at> <20231202201655.40450-3-cosmin@cosmin.at> X-Mailer: Amazon WorkMail Thread-Index: AQHaJVx/pw0LJ5SZTAe6kqN6vnwK6wAAAGDd Thread-Topic: [PATCH v3 2/3] avfilter/vf_bwdif_cuda: consider chroma subsampling when enforcing minimum dimensions X-Original-Mailer: git-send-email 2.42.1 X-Wm-Sent-Timestamp: 1701548218 Message-ID: <0101018c2c2d5d62-1225137e-a53e-4f7c-beae-6123f9fd9e22-000000@us-west-2.amazonses.com> Feedback-ID: 1.us-west-2.An468LAV0jCjQDrDLvlZjeAthld7qrhZr+vow8irkvU=:AmazonSES X-SES-Outgoing: 2023.12.02-54.240.27.16 Subject: [FFmpeg-devel] [PATCH v3 2/3] avfilter/vf_bwdif_cuda: consider chroma subsampling when enforcing minimum dimensions X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Cosmin Stejerean via ffmpeg-devel From: Cosmin Stejerean Reply-To: FFmpeg development discussions and patches Cc: =?utf-8?q?Cosmin_Stejerean?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: YfK59z5fdAzs From: Cosmin Stejerean Signed-off-by: Cosmin Stejerean --- libavfilter/vf_bwdif_cuda.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavfilter/vf_bwdif_cuda.c b/libavfilter/vf_bwdif_cuda.c index a5ecfbadb6..418f15f989 100644 --- a/libavfilter/vf_bwdif_cuda.c +++ b/libavfilter/vf_bwdif_cuda.c @@ -296,15 +296,16 @@ static int config_output(AVFilterLink *link) link->frame_rate = av_mul_q(ctx->inputs[0]->frame_rate, (AVRational){2, 1}); - if (link->w < 3 || link->h < 3) { - av_log(ctx, AV_LOG_ERROR, "Video of less than 3 columns or lines is not supported\n"); - ret = AVERROR(EINVAL); - goto exit; - } y->csp = av_pix_fmt_desc_get(output_frames->sw_format); y->filter = filter; + if (AV_CEIL_RSHIFT(link->w, y->csp->log2_chroma_w) < 3 || AV_CEIL_RSHIFT(link->h, y->csp->log2_chroma_h) < 3) { + av_log(ctx, AV_LOG_ERROR, "Video with planes less than 3 columns or lines is not supported\n"); + ret = AVERROR(EINVAL); + goto exit; + } + ret = CHECK_CU(cu->cuCtxPushCurrent(s->hwctx->cuda_ctx)); if (ret < 0) goto exit; From patchwork Sat Dec 2 20:17:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cosmin Stejerean X-Patchwork-Id: 44869 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a301:b0:181:818d:5e7f with SMTP id x1csp1915701pzk; Sat, 2 Dec 2023 12:17:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn9c2EzRk6eklCROGgKUSi4GgQIKWgIHovymI0XFsJQdgSX10OBEPEEkRrpPXuCqYmnnQ2 X-Received: by 2002:a17:906:608f:b0:9cf:7c60:47b9 with SMTP id t15-20020a170906608f00b009cf7c6047b9mr17615137ejj.1.1701548250476; Sat, 02 Dec 2023 12:17:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701548250; cv=none; d=google.com; s=arc-20160816; b=1FjyTQdjNju3kFcTn8nUxG6/Xq+L1xeJngTvukTf7JPGzO/kx5c5XHxjblYGk77CbU 9wnHz8Udyg8cfBKYaYPnngPMc3ckahNqEyreOZf47nXXnEj6W2j3384TnRWkaaudsxgj e9s8/35cFab0kMXUjwwbXeIj6C0qI0H/7A59GdnTORAMAU7eAj0spFATCDyDMpB1+dxG qPRQ6ztqRKaDrwLugSYNCJrJwQ3e25Qqkh0EY9ERT10Ui1qaONHRCMOkMho5lvtX8ZrE Cq6FJCfE9ckrvRMKczIi9OdrehT7YAtgMJBN0Yd9cd+HDoHUTrOlopwMbDQaLfMpSmT6 Di2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to:from :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:message-id:thread-topic :thread-index:references:in-reply-to:mime-version:date:to :delivered-to; bh=nAdpg+KrvNbnKBZrTtBNITj9xPnPYGRIZZjADoL0Ors=; fh=CBS/D0cB4KwqFBY8d8UQ4TY1w6HZ9TulitLE+VqI2+k=; b=VRX6hCU4EbDWObEKQM65eda1H3CLCx3ZA19caNsRFMxALyxoi23GzpXfkOlkGwUAIo 7+ugMThLn7vj8j4qvGuDirTK13eZ8Z4aokUThv2TTSmaojpkXMfloeXdMe+60qryNUOc HDKnqzFztw+v4W91EL0tZwXgqNtGy/N4ggprqG9MysG6avfXMvWaeplflVqbd8Ek6Mz0 fbq3b+iB208PprtW/FNoDmpiBMwBJTVwqCIDTqJ3p3RMEjGP1EPOvl4Ec9Aa7Xf76ex+ OBsKrULXmvMuJyRSCbXAhFFcJKPfHXdX2R63PiTcSMchxxjBCKZEgAEvnek0M81Dw7rU Xoxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id k11-20020a1709061c0b00b009b9977867f2si2978608ejg.278.2023.12.02.12.17.30; Sat, 02 Dec 2023 12:17:30 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A0B1A68CA16; Sat, 2 Dec 2023 22:17:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from a27-93.smtp-out.us-west-2.amazonses.com (a27-93.smtp-out.us-west-2.amazonses.com [54.240.27.93]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9C76968CBD2 for ; Sat, 2 Dec 2023 22:17:04 +0200 (EET) To: =?utf-8?q?ffmpeg-devel=40ffmpeg=2Eorg?= Date: Sat, 2 Dec 2023 20:17:00 +0000 Mime-Version: 1.0 In-Reply-To: <20231202201655.40450-1-cosmin@cosmin.at> References: <20231202201655.40450-1-cosmin@cosmin.at> <20231202201655.40450-4-cosmin@cosmin.at> X-Mailer: Amazon WorkMail Thread-Index: AQHaJVx/pw0LJ5SZTAe6kqN6vnwK6wAAAIFP Thread-Topic: [PATCH v3 3/3] avfilter/vf_bwdif_vulkan: consider chroma subsampling when enforcing minimum dimensions X-Original-Mailer: git-send-email 2.42.1 X-Wm-Sent-Timestamp: 1701548219 Message-ID: <0101018c2c2d60c0-2f247f42-6548-4bd3-a5c6-bafd698fa95b-000000@us-west-2.amazonses.com> Feedback-ID: 1.us-west-2.An468LAV0jCjQDrDLvlZjeAthld7qrhZr+vow8irkvU=:AmazonSES X-SES-Outgoing: 2023.12.02-54.240.27.93 Subject: [FFmpeg-devel] [PATCH v3 3/3] avfilter/vf_bwdif_vulkan: consider chroma subsampling when enforcing minimum dimensions X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Cosmin Stejerean via ffmpeg-devel From: Cosmin Stejerean Reply-To: FFmpeg development discussions and patches Cc: =?utf-8?q?Cosmin_Stejerean?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 2FGJlRA4cmdE From: Cosmin Stejerean Signed-off-by: Cosmin Stejerean --- libavfilter/vf_bwdif_vulkan.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libavfilter/vf_bwdif_vulkan.c b/libavfilter/vf_bwdif_vulkan.c index 690a89c4ba..c51df9aa26 100644 --- a/libavfilter/vf_bwdif_vulkan.c +++ b/libavfilter/vf_bwdif_vulkan.c @@ -362,15 +362,14 @@ static int bwdif_vulkan_config_output(AVFilterLink *outlink) outlink->frame_rate = av_mul_q(avctx->inputs[0]->frame_rate, (AVRational){2, 1}); - if (outlink->w < 4 || outlink->h < 4) { - av_log(avctx, AV_LOG_ERROR, "Video of less than 4 columns or lines is not " - "supported\n"); - return AVERROR(EINVAL); - } - y->csp = av_pix_fmt_desc_get(vkctx->frames->sw_format); y->filter = bwdif_vulkan_filter_frame; + if (AV_CEIL_RSHIFT(outlink->w, y->csp->log2_chroma_w) < 4 || AV_CEIL_RSHIFT(outlink->h, y->csp->log2_chroma_h) < 4) { + av_log(avctx, AV_LOG_ERROR, "Video with planes less than 4 columns or lines is not supported\n"); + return AVERROR(EINVAL); + } + return init_filter(avctx); }