From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 5A6864C478 for ; Fri, 5 Sep 2025 15:49:29 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'HMGKL8EhZUo2corFpmPhyCsiH5iXm0GoKRKB4h2nupw=', expected b'wMi3U1xAJsutXS+ZpYgPyj7Y681GW/0x08BRysIqrmE=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1757087364; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=HMGKL8EhZUo2corFpmPhyCsiH5iXm0GoKRKB4h2nupw=; b=iQbcHrSCeQl0U96T82qC1djs7YKb4PnkzrYzUji4omNjxamZUaLKOLEOZSqmzoFMjPWCI /k4tXuiLaPWyYP0rI+7xhkYQ0Q0wOEUqB+qdQIQJeLzY7FRcTS75yQRS+aMr84cT6VwF7E8 5nD2xY0JzU6mhOTNOzOnS4L5EoakLCLTWu/+CP/V+gEct3T2PJFx7S6P1Vf0yKeoW1zpb2+ DYu3Hll84cn2EUYN3erE7TXsFFIUsMWaFjMIrNk8WTSygDY6uoAAsZQmbgkUWmFX4PJMGkZ fYYl797+6JPh+2pbCeCOu9SRVhGLMQs94dyL/CLwDyY3xnCr5hFCfTcX4LmQ== Received: from [172.19.0.4] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 1D18968B0ED; Fri, 5 Sep 2025 18:49:24 +0300 (EEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1757087363; b=T7c+qeAcQgP8jwPSXcthJO8NQeWdoY03RU2g8NY7shDU6LSvBuJbGTeMPZzKuWkBeM6gz sj/UMzqSqCNn5NiQlSgeyqlO+Lbpas/dDLa1VOvonX3p5UW3KgZExF4cO75wVxIF2VtOBwB MMUKGlWC770Dp01Z5UQNEnHQpSHNHupiJcnLVZ4cl3R4r3kqcPYgw53V3Ky4A+Wh5K0e9Sv 5kALxLmafdCifuHrMnFEOmWcEbgz8RSux8W/GtSngdCv2Q1rih0tkvEDvoJyxhfar+tZ7ap V0imyb3WzUrVCo2tFqse/kONLs7yPLForS4QhoqcQD1rz4HLiKuFacM1VEDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1757087363; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=Rvfkc6FoQm721y0x2drypCSuMe74JBJ7Iae4QD6gSX0=; b=gcfbBLcjaSAXzNQMnsB/5vI+u/J1rpgzUU7H0TF71B1d3zMq23xHeFWB6W/7mG6Jx/mBl Cg36eoWnUpJsHIaksYzgxfenPboQ26GZ+6sYFwBvBobYUatDeJxmKAp8D7iORRba5zDLHoX EOYsk3uaB3xAkyYgPK3biwoy4DHpN47RsQQglud9QBon8x+SBa1NpvTYAfbCID1Eqrel21Z EijBrfkYc6pos52w3lJvWb1zMSFShrAaOPc00LY2XTm0yajIMw7f1lna0mvcED8NEhVwJah j6rQGXLBjBUv2coItvAP5Qfrop1KlqIelrVX00Z6OVerwd5MpZ+V9VPBvUew== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=none Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1757087354; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=wMi3U1xAJsutXS+ZpYgPyj7Y681GW/0x08BRysIqrmE=; b=LCnTpj92AiQScxlr1HWuSEaWaDTCWbAjuIz8tOGDGgEE8YznxpjKXWweI5qIFzXI71KhK +4thdytj5FOVLZPAivGxexdzn6Jyu6FlPY23/KxI/0H69SoGwO1rqvUAYvxaRWa7GYBXs3B me1uAd11OS9ZI1PuL0UcTGdebwetJPEDbWNxuItjZMOH0kMXiv9Gx1ZNAL1lFx2gK+/cJA7 hF4KJGIr96/O2l9An14njqT63UtrJced8aC4QoWZj8DjQI439p8WJnMUFdUZOY3WHR8tVgd nBCn/1d5M6VSmW2xPV81sTDXiQMeGdjURzOZPJMquhnwFBeap87iMrOwT6qg== Received: from 95ff7801cf76 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 52F71680099 for ; Fri, 5 Sep 2025 18:49:14 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Fri, 05 Sep 2025 15:49:13 -0000 Message-ID: <175708735450.25.11993891212107384401@463a07221176> Message-ID-Hash: 43CBQ7JM6ONHZ6BUEUESZ7Q2U7QWUBS6 X-Message-ID-Hash: 43CBQ7JM6ONHZ6BUEUESZ7Q2U7QWUBS6 X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] avcodec/decode: treat orientation 1 as valid displaymatrix (PR #20447) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Leo Izen via ffmpeg-devel Cc: Leo Izen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #20447 opened by Leo Izen (Traneptora) URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20447 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20447.patch Since 9dc79241d9680fc050376bb0cc37875a41d00cc9 we now always pop the orientation off of the IFD and use a display matrix instead. This means we should not produce a warning and refuse if the orientation field indicates a default orientation (i.e. 1). Signed-off-by: Leo Izen Reported-by: Ramiro Polla >>From 3899fa1b53e0d3ba80ce8e26a19dfba66e449dc3 Mon Sep 17 00:00:00 2001 From: Leo Izen Date: Fri, 5 Sep 2025 11:44:41 -0400 Subject: [PATCH] avcodec/decode: treat orientation 1 as valid displaymatrix Since 9dc79241d9680fc050376bb0cc37875a41d00cc9 we now always pop the orientation off of the IFD and use a display matrix instead. This means we should not produce a warning and refuse if the orientation field indicates a default orientation (i.e. 1). Signed-off-by: Leo Izen Reported-by: Ramiro Polla --- libavcodec/decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index f395948d60..ae86e270df 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -2337,7 +2337,7 @@ static int attach_displaymatrix(AVCodecContext *avctx, AVFrame *frame, int orien int32_t *matrix; int ret; /* invalid orientation */ - if (orientation < 2 || orientation > 8) + if (orientation < 1 || orientation > 8) return AVERROR_INVALIDDATA; ret = ff_frame_new_side_data(avctx, frame, AV_FRAME_DATA_DISPLAYMATRIX, sizeof(int32_t) * 9, &sd); if (ret < 0) { -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org