From 1190e53e9b69da6f9663ceb75c4813c5708b7cbd Mon Sep 17 00:00:00 2001 From: Fushan Wen Date: Sat, 15 Oct 2022 14:11:56 +0800 Subject: [PATCH] avif: always indicate endless loop avif does not support loops but endless loop was the behavior before 460085 was fixed, so a workaround is added. See also: https://github.com/AOMediaCodec/libavif/issues/347 CCBUG: 460085 --- src/imageformats/avif.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/imageformats/avif.cpp b/src/imageformats/avif.cpp index c4f7a0f..24aec84 100644 --- a/src/imageformats/avif.cpp +++ b/src/imageformats/avif.cpp @@ -1024,7 +1024,8 @@ int QAVIFHandler::loopCount() const return 0; } - return 1; + // Endless loop to work around https://github.com/AOMediaCodec/libavif/issues/347 + return -1; } QPointF QAVIFHandler::CompatibleChromacity(qreal chrX, qreal chrY) -- GitLab