From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D37BE483E2 for ; Sat, 2 Dec 2023 22:02:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 81BD668CC51; Sun, 3 Dec 2023 00:02:56 +0200 (EET) Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6906B68BCD3 for ; Sun, 3 Dec 2023 00:02:49 +0200 (EET) Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-58d06bfadf8so2294334eaf.1 for ; Sat, 02 Dec 2023 14:02:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701554567; x=1702159367; darn=ffmpeg.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RrGfKYVu9DPeSrKtr5j753qDqo1BzhiI/4pdvuy50Pg=; b=Y4Roaf5Yas6HG0Q2zvFlsqo7IdC0VmaE4uS/a+zLtkumtqqJ2KZuFN3FBzBC40TynR /Y9/3JHsn2navvhulcOAupsKIA3mrH19sF4oA+HuwVRo5mGdF/cc9juPzziHTaZUEW9l 6j7Dc47OKW+Rxqk1a+tAKOYQ+bji5K/xTjoyg6YM6U7a0y6YAQPfDDC2nDfcpDoP5DCN woIaHYGhPsqVk/l4j6reP1wdwZJ2vzP+Yu2grTpptmY3hmZmu0Xpk8eemwIzExChFO2g vdfe3maZzqTMYn/kUuPU9Ge7p+Ncv2H5XOZF/X/mylxACWaugnDkGpjyC2gETevvIZI/ LagA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701554567; x=1702159367; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RrGfKYVu9DPeSrKtr5j753qDqo1BzhiI/4pdvuy50Pg=; b=QYLHyZe5xe3Fv3ah/kbx6S4EeDgTrXrJgaJ2NJhxqWlpPvX6GNODXq5h9G2jltsnK1 KtSGOdXt08qP4s20NhJMolaOhFU7J3DuQTv5K+Zy+AfuVLGz3WDVRyiIIl6Ev93rFD/p dy5tEa3goKqohG8Sw2/rguMP5IGkKUc3BXUXQ9AHCBN6b6y9JndJca64nGdi1oVJqs7g SbDg0DpWw/7hApOlNiIA2oPo6UsKbQupoMiXE2umWNNkRlq8/KiPEdX5ilRYM+LOsS1e LRr8mfnnqC7YivUQWKKL486gT5WZQ0SGffjr2VNRRW3hrS0jUQ1FyJLLLkwroAcSdR4T U4Zw== X-Gm-Message-State: AOJu0YxRNJZ2fn4YymgTMky3cIuc17+/oj1EsFUpJG6V/yTZ3p6qdtiw 83bmytM35R5seFbe0x7haz+Ga5NZ2uwjgKVy9xWzYIQT X-Google-Smtp-Source: AGHT+IHkmKNJb1XjYNueV54cMFVWB5pfJzzXVis93ubyBzWbdZCJ8W8embwZv32MS0uM45Qo8MOfWRxTGzc+QYaFTdg= X-Received: by 2002:a05:6358:60c1:b0:16d:abc7:bfab with SMTP id i1-20020a05635860c100b0016dabc7bfabmr2166912rwi.15.1701554566981; Sat, 02 Dec 2023 14:02:46 -0800 (PST) MIME-Version: 1.0 References: <20231202201655.40450-2-cosmin@cosmin.at> <20231202201655.40450-1-cosmin@cosmin.at> <0101018c2c2d9cdb-e6505ea7-5210-438b-8801-dd75d12b59ce-000000@us-west-2.amazonses.com> In-Reply-To: <0101018c2c2d9cdb-e6505ea7-5210-438b-8801-dd75d12b59ce-000000@us-west-2.amazonses.com> From: Thomas Mundt Date: Sat, 2 Dec 2023 23:02:36 +0100 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [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: , Reply-To: FFmpeg development discussions and patches Cc: Cosmin Stejerean Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Cosmin Stejerean via ffmpeg-devel schrieb am Sa., 2. Dez. 2023, 21:17: > 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; > -- > 2.42.1 > LGTM, thanks. > _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".