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 0D69B4C3E3 for ; Fri, 26 Jul 2024 14:59:11 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5790168D733; Fri, 26 Jul 2024 17:59:03 +0300 (EEST) Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3C84B68D473 for ; Fri, 26 Jul 2024 17:58:56 +0300 (EEST) Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-42803bbf842so22392035e9.1 for ; Fri, 26 Jul 2024 07:58:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722005935; x=1722610735; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=e8Bdfy2YM8x244rNHzGJq7/4FKoHh1HBYWk4gZZP5cc=; b=A8TMc0MNFYRRlyoa85dioFUaLeS7jBqqxsruR7mDD+CnbO6kUK3qjQ6qeDvwWtyjpE tKIeV6Cj4tIbzFp9NAbYxMqBkcH0nGJ3ywD2CtGq/FKQdKa9QUN1NkMMTB1LowxllQ9G mY8wBX1sNd7dQo5lUdTB06yTZxyG3gM0cqjb1SsX02vluByzv35gAOrxEEMvC+rw7Ul+ pm5JnCjNaSjWuX5YLE/p8jXXwSUVeWOzxKnUiHQ7AyZe3McaYFhRs+FaerQXXs6dZNhZ pIUA5CJoRKkx7QGDXp2vdYXlq5typSfWc7y3nqaP8JLiBwVVXIj09Lb9GqlXqRK3ByCm bWpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722005935; x=1722610735; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e8Bdfy2YM8x244rNHzGJq7/4FKoHh1HBYWk4gZZP5cc=; b=MTdmodFwscmrRf9NA6HwseQ+m7QCHtJDIQeeUaByB9dAEBMuAUD6vyFIXgrd9LN92R +9aycR9xhJt93OsXsPdEj+vV2oUDzuVUiT0+OJSSxGn2ntxWH3j45nwUNPFB6Udguxwb ph4K/ZfrNEWYmIsYBTTGF70XibRjrL3x6vvCyCfl5kIkJ/PV+kf43kfcbrcY/HjBuYHA uhF8mzY5ZspAutEAS0UK2uEmvypVRbgPO/uIgrXS3VTdlCk6s1YbCutcLq8AVSoGimR1 MPBRZAdwXkmOY8RyE8IL8IpxVyyOlao9Izc1s+I5Yi5zAiodLedpqKEI5pv5QZ9t4y5a eaJA== X-Gm-Message-State: AOJu0Yz0gVRyZvX/uE2wWJxDxt3iC2392XYdry8+e7iUZRN1Kt9o2PdG l1A1DaRmHUWp2UREfLtcrxnISlcYPsKWR6Hbupvvgkudb/KBCah3xC+Rbg== X-Google-Smtp-Source: AGHT+IHlOXyy7RplxIzpz7gH9bsj6A7QDuoLAksRFIgavCeo7k1lGxNE5eqW5pVLsodVsXsaN+6wcQ== X-Received: by 2002:a05:600c:4f43:b0:428:e30:fa8d with SMTP id 5b1f17b1804b1-4280e30fc87mr17018365e9.6.1722005934929; Fri, 26 Jul 2024 07:58:54 -0700 (PDT) Received: from localhost.localdomain ([152.110.13.78]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4280f027411sm19896955e9.33.2024.07.26.07.58.53 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 26 Jul 2024 07:58:54 -0700 (PDT) From: tonetechnician@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Jul 2024 16:58:43 +0200 Message-Id: <20240726145843.68774-2-tonetechnician@gmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) In-Reply-To: <20240726145843.68774-1-tonetechnician@gmail.com> References: <20240726145843.68774-1-tonetechnician@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/1] 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 Cc: Sean Devonport 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: Sean Devonport 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. --- 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".