mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2026-08-26 08:26:59 -04:00
avif: If we only have single image, return false at jumpToNextImage
We were errorneously returning true here, as we do not have any more
images to jump to. If we only have one image, return false.
This avoids the avif handler getting stuck in a loop with only single images.
BUG: 521200
FIXED-IN: 6.28
(cherry picked from commit 7edf807082)
Co-authored-by: Akseli Lahtinen <[email protected]>
This commit is contained in:
co-authored by
Akseli Lahtinen
parent
ae279c55f4
commit
950a461fd3
@@ -1180,7 +1180,7 @@ bool QAVIFHandler::jumpToNextImage()
|
|||||||
if (m_decoder->imageIndex >= 0) {
|
if (m_decoder->imageIndex >= 0) {
|
||||||
if (m_decoder->imageCount < 2) {
|
if (m_decoder->imageCount < 2) {
|
||||||
m_parseState = ParseAvifSuccess;
|
m_parseState = ParseAvifSuccess;
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_decoder->imageIndex >= m_decoder->imageCount - 1) { // start from beginning
|
if (m_decoder->imageIndex >= m_decoder->imageCount - 1) { // start from beginning
|
||||||
|
|||||||
Reference in New Issue
Block a user