diff --git a/autotests/read/ani/test_1.ani b/autotests/read/ani/test_1.ani new file mode 100644 index 0000000..2c91aae Binary files /dev/null and b/autotests/read/ani/test_1.ani differ diff --git a/autotests/read/ani/test_1.png b/autotests/read/ani/test_1.png new file mode 100644 index 0000000..78dcfc0 Binary files /dev/null and b/autotests/read/ani/test_1.png differ diff --git a/autotests/read/pic/4x4-alpha.pic b/autotests/read/pic/4x4-alpha.pic new file mode 100644 index 0000000..fc3e43d Binary files /dev/null and b/autotests/read/pic/4x4-alpha.pic differ diff --git a/autotests/read/pic/4x4-alpha.png b/autotests/read/pic/4x4-alpha.png new file mode 100644 index 0000000..0ba8a1f Binary files /dev/null and b/autotests/read/pic/4x4-alpha.png differ diff --git a/autotests/read/pic/4x4-simple-color.pic b/autotests/read/pic/4x4-simple-color.pic new file mode 100644 index 0000000..88b636f Binary files /dev/null and b/autotests/read/pic/4x4-simple-color.pic differ diff --git a/autotests/read/pic/4x4-simple-color.png b/autotests/read/pic/4x4-simple-color.png new file mode 100644 index 0000000..f8d5d43 Binary files /dev/null and b/autotests/read/pic/4x4-simple-color.png differ diff --git a/autotests/read/pic/long-runs.pic b/autotests/read/pic/long-runs.pic new file mode 100644 index 0000000..4a2ffcb Binary files /dev/null and b/autotests/read/pic/long-runs.pic differ diff --git a/autotests/read/pic/long-runs.png b/autotests/read/pic/long-runs.png new file mode 100644 index 0000000..c718f7f Binary files /dev/null and b/autotests/read/pic/long-runs.png differ diff --git a/src/imageformats/ani.cpp b/src/imageformats/ani.cpp index 3fa7c83..75e1800 100644 --- a/src/imageformats/ani.cpp +++ b/src/imageformats/ani.cpp @@ -521,6 +521,9 @@ bool ANIHandler::canRead(QIODevice *device) qWarning("ANIHandler::canRead() called with no device"); return false; } + if (device->isSequential()) { + return false; + } const QByteArray riffIntro = device->peek(12);