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
This commit is contained in:
Fushan Wen 2022-10-15 14:11:56 +08:00
parent 350ce1b990
commit 1190e53e9b
No known key found for this signature in database
GPG Key ID: 2E48D1487C91DCAA

View File

@ -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)