From 25a03385f1256b251cfcd4e0577af400b28ac4db Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 4 Mar 2025 11:25:03 +0100 Subject: [PATCH] AVIF: remove limitation that prevente to read images bigger than 10 MB --- frmts/avif/avifdataset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frmts/avif/avifdataset.cpp b/frmts/avif/avifdataset.cpp index 8f2ecf001b54..ef51d841c0f0 100644 --- a/frmts/avif/avifdataset.cpp +++ b/frmts/avif/avifdataset.cpp @@ -299,7 +299,7 @@ GDALAVIFIO::GDALAVIFIO(VSIVirtualHandleUniquePtr fpIn) : fp(std::move(fpIn)) nFileSize = fp->Tell(); fp->Seek(0, SEEK_SET); - io.sizeHint = std::min(10 * 1024 * 1024, nFileSize); + io.sizeHint = nFileSize; } /************************************************************************/