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 41D114C1D4 for ; Tue, 23 Jul 2024 09:42:46 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0758C68D519; Tue, 23 Jul 2024 12:42:44 +0300 (EEST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E48BE68D454 for ; Tue, 23 Jul 2024 12:42:36 +0300 (EEST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4266dc7591fso38068625e9.0 for ; Tue, 23 Jul 2024 02:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721727756; x=1722332556; darn=ffmpeg.org; h=to:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=0KfwmOk+b+QbDHTJ6sYL2NWRqUt0qzId7+DJgWDG9Ok=; b=KSjxL4o/KZ6ctlahj6TFsAlcDve9Ttr/0aBiztyxwXQfH7hMG5b2gcEQuHPpS57ZSC xLuZmeWqQJwFJxY474702FtEUP53YhHA0cCWgfB3q5QK8BFcXEKj4uw9SbMAaQAM+3UO hw4bw87+1u21yjrCJtkvM1TU9kb+ixX+Yr7wHvSZjf8b/JTPr8PsdE5IDxUCa201YfLx oj8ZvVlcnmwMNws8fXGEp9m//OXwyfHTn1lRth5tbXrp+/6kGfmHzANsFBcyzb90GB9e F9zpqc0JjyKPowbqGPPk+7GQY+V8Xz/D3ZVfLfvHEkKWZHvQ5AMtucWgeyldtscWYwUr +8iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721727756; x=1722332556; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0KfwmOk+b+QbDHTJ6sYL2NWRqUt0qzId7+DJgWDG9Ok=; b=wwj/1bNBTxNhWQgRS3UProQMBTXLfs02F7pwx4ytcJX8Pi+Ib08Gr2Dizb0jsiNqu3 gkQTWYucJ5cA9BzB+q6LmKOoL6WK3RxwFbsNeI+1n3UOvtm09TVVqEjRLT6lvTl1fqur dlY4V+pdwymwOA/q0yN0TzIRrFkbXaQeabiDXJW140JRcuLP1PWs73OcieesfKSHu5NM oAEZqFnq4AdkSAZYjCa5zHRyBTSEwlud+4m15EJKnCumN6l9HbL/w6FeR/V/RLeic2T1 5rfR+fwv1BzwGIL9583wnqFNd3fGary5egXmyPvvyq9vSQ1QtyhPnv6mvo+AWcZsuiVh CfVQ== X-Gm-Message-State: AOJu0YzWJclNBBpLgsfQe+8xqM/BEvEUPLt8NQKXC8+zQD2PdEVWFGiX Jwuj7kFFaZP0gRKnkO73VkuycILItA5uUnGaHtNvYTaaEPV8XvAcWmfi1g== X-Google-Smtp-Source: AGHT+IERrqv1P3VqKwh6G7pGiL7DQa9rdxLYsv2hH43khNdzadxSSUu8AW+AamO53F9+f2rS7hoOlg== X-Received: by 2002:a05:600c:3d8a:b0:426:5f75:1c2c with SMTP id 5b1f17b1804b1-427dc5482e6mr52905785e9.11.1721727755550; Tue, 23 Jul 2024 02:42:35 -0700 (PDT) Received: from smtpclient.apple ([152.110.31.183]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36878684757sm11033453f8f.10.2024.07.23.02.42.34 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jul 2024 02:42:35 -0700 (PDT) From: Sean Devonport Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Message-Id: <50391908-1EB0-45C8-A476-1609A645D0A4@gmail.com> Date: Tue, 23 Jul 2024 11:42:22 +0200 To: ffmpeg-devel@ffmpeg.org X-Mailer: Apple Mail (2.3774.600.62) X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [FFmpeg-devel] [PATCH] lavc/exr: decode_block() fails when input resolution not exactly divisable by 8 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 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: This stops decode_block() from failing when the .exr resolution is not divisable by 8 (e.g 108x192). The dc_w and dc_h needs to be round up and not down. Signed-off-by: Sean Devonport > --- libavcodec/exr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/exr.c b/libavcodec/exr.c index 4bac0be89b..5df2c55609 100644 --- a/libavcodec/exr.c +++ b/libavcodec/exr.c @@ -987,8 +987,8 @@ static int dwa_uncompress(const EXRContext *s, const uint8_t *src, int compresse int64_t version, lo_usize, lo_size; int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size; int64_t ac_count, dc_count, ac_compression; - const int dc_w = td->xsize >> 3; - const int dc_h = td->ysize >> 3; + const int dc_w = (td->xsize + 7) >> 3; + const int dc_h = (td->ysize + 7) >> 3; GetByteContext gb, agb; int skip, ret; -- 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".