From 234824afefe9d20250fa814b5599033315cfd60e Mon Sep 17 00:00:00 2001 From: movsb Date: Mon, 9 Dec 2024 12:52:41 +0800 Subject: [PATCH] fix avif size calc --- service/modules/renderers/media_size/formats.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/modules/renderers/media_size/formats.go b/service/modules/renderers/media_size/formats.go index 3e1f04c3..98d4bed8 100644 --- a/service/modules/renderers/media_size/formats.go +++ b/service/modules/renderers/media_size/formats.go @@ -102,8 +102,8 @@ func avif(r io.Reader) (*Metadata, error) { ) if size == 0x14 && version == 0x00 && - (width > 0 && width < 10000) && // just in case - (height > 0 && height < 10000) { + (width > 0 && width < 65536) && // just in case + (height > 0 && height < 65536) { return &Metadata{ Width: int(width), Height: int(height),