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 DCD174C954 for ; Sat, 10 Aug 2024 06:13:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0F78B68D963; Sat, 10 Aug 2024 09:13:55 +0300 (EEST) Received: from ms11p00im-hyfv17291101.me.com (ms11p00im-hyfv17291101.me.com [17.58.38.40]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0E54268D756 for ; Sat, 10 Aug 2024 09:13:48 +0300 (EEST) Received: from Yakumo-Yukari.lan (ms11p00im-dlb-asmtpmailmevip.me.com [17.57.154.19]) by ms11p00im-hyfv17291101.me.com (Postfix) with ESMTPSA id 649847600A5; Sat, 10 Aug 2024 06:13:44 +0000 (UTC) To: ffmpeg-devel@ffmpeg.org Date: Sat, 10 Aug 2024 14:13:39 +0800 Message-Id: <20240810061339.58428-1-gnattuoc@me.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: -Z5pqdqEA1mF1q7-JW53E7jTBMOu2BTw X-Proofpoint-GUID: -Z5pqdqEA1mF1q7-JW53E7jTBMOu2BTw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-10_05,2024-08-07_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1015 bulkscore=0 suspectscore=0 mlxscore=0 adultscore=0 malwarescore=0 spamscore=0 mlxlogscore=714 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2408100046 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 Subject: [FFmpeg-devel] [PATCH] avutil/hwcontext_videotoolbox: silence warning for RGB 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: , From: gnattu via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: gnattu 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: Hardware frames with RGB colorspace will not have a YCbCrMatrixKey. Currently, it will spam the console with warning if rgb frame is uploaded. Signed-off-by: Gnattu OC --- libavutil/hwcontext_videotoolbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_videotoolbox.c b/libavutil/hwcontext_videotoolbox.c index 80eaab64f08..122a61d5e78 100644 --- a/libavutil/hwcontext_videotoolbox.c +++ b/libavutil/hwcontext_videotoolbox.c @@ -576,7 +576,7 @@ static int vt_pixbuf_set_colorspace(void *log_ctx, colormatrix, kCVAttachmentMode_ShouldPropagate); else { CVBufferRemoveAttachment(pixbuf, kCVImageBufferYCbCrMatrixKey); - if (src->colorspace != AVCOL_SPC_UNSPECIFIED) + if (src->colorspace != AVCOL_SPC_UNSPECIFIED && src->colorspace != AVCOL_SPC_RGB) av_log(log_ctx, AV_LOG_WARNING, "Color space %s is not supported.\n", av_color_space_name(src->colorspace)); -- 2.39.3 (Apple Git-146) _______________________________________________ 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".