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 1DB15490FD for ; Sat, 3 Feb 2024 19:29:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E857E68D109; Sat, 3 Feb 2024 21:29:39 +0200 (EET) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 226CB68CA69 for ; Sat, 3 Feb 2024 21:29:34 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 55D1120003 for ; Sat, 3 Feb 2024 19:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1706988573; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc; bh=GsaR24kbovEasXcmcpfR3hvKou9b3ytlzwou6/iIoCs=; b=a13a60m+P4kiwwnIGg1dD9wfCjnTQ+AbMrHmUGcElzvWy/ljklU3+TZksrkcE7G68S/jNm bNlIQPws+dqJUCOH2xPZA2tn5d6S+BUQQpi2BNnddAJm4GtWPQV3pGTNNHy92bu3PSZN/L qxt4gMv5qPI+zg9W6ERp2t1uTJ5HVVrI7sq9sVhcOm+tJauzVsHdea0e+SiUZP4g9uDQSp 4YDls2lP4mkdEPf968yLjFzJKDxuorsvH93SrwqS/SvGNIq9y8YFvljkj7rwnq0Rg8qhB1 vbyrEXPQPXfNU24d1FHEdkwgN6YA0iCaSEEWLYYSzr1ZVjgYE11cqVDwaHaCJA== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Sat, 3 Feb 2024 20:29:31 +0100 Message-Id: <20240203192931.28534-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.17.1 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH] avcodec/indeo3: Round dimensions up in allocate_frame_buffers() 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 MIME-Version: 1.0 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: Fixes: Ticket6581 Signed-off-by: Michael Niedermayer --- libavcodec/indeo3.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/indeo3.c b/libavcodec/indeo3.c index 5f1014f0d49..7bb0235bdb5 100644 --- a/libavcodec/indeo3.c +++ b/libavcodec/indeo3.c @@ -171,6 +171,9 @@ static av_cold int allocate_frame_buffers(Indeo3DecodeContext *ctx, int luma_size, chroma_size; ptrdiff_t luma_pitch, chroma_pitch; + luma_width = FFALIGN(luma_width , 2); + luma_height = FFALIGN(luma_height, 2); + if (luma_width < 16 || luma_width > 640 || luma_height < 16 || luma_height > 480 || luma_width & 1 || luma_height & 1) { -- 2.17.1 _______________________________________________ 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".