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 CC249475B3 for ; Fri, 12 Jan 2024 08:30:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 9C15968D085; Fri, 12 Jan 2024 10:30:06 +0200 (EET) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 8843368C838 for ; Fri, 12 Jan 2024 10:29:58 +0200 (EET) Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id 14CCD4B77A; Fri, 12 Jan 2024 09:29:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1705048198; bh=XDG/m8CNPVS5wQyqjf9I9hR3paksn+IGqtAdbwTgG6s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YeWS3dqbwVPXdKHCFGWIMSnuobj868syVaLnAPVQewpXgrcQcHHVOPZlRv+bEbUHg 08pKq5sQWSqh1L+jKSQWTbhkLKXFNysiFqa8xRRj78OEMAzdzKhGKm2SnWkfF/z10Y uVgmmpWae72iQlpft5OlFk3OP8iuRwVj32vbxtZY= From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Fri, 12 Jan 2024 09:26:00 +0100 Message-ID: <20240112082950.41637-4-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112082950.41637-1-ffmpeg@haasn.xyz> References: <20240112082950.41637-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 03/11] avfilter/vf_tiltandshift: check outlink->color_range 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: Niklas Haas 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: From: Niklas Haas In addition to YUVJ pixfmts. --- libavfilter/vf_tiltandshift.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_tiltandshift.c b/libavfilter/vf_tiltandshift.c index 0b1a03e29e..dc30f4ff1b 100644 --- a/libavfilter/vf_tiltandshift.c +++ b/libavfilter/vf_tiltandshift.c @@ -140,7 +140,8 @@ static int config_props(AVFilterLink *outlink) if (outlink->format == AV_PIX_FMT_YUVJ420P || outlink->format == AV_PIX_FMT_YUVJ422P || outlink->format == AV_PIX_FMT_YUVJ444P || - outlink->format == AV_PIX_FMT_YUVJ440P) + outlink->format == AV_PIX_FMT_YUVJ440P || + outlink->color_range == AVCOL_RANGE_JPEG) black_data[0] = black_data[3] = 0; ret = av_image_alloc(s->black_buffers, s->black_linesizes, 1, -- 2.43.0 _______________________________________________ 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".