Skip to content

Commit 7bc1038

Browse files
vtfpp: fix QOI signature check
1 parent 4436a77 commit 7bc1038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vtfpp/ImageConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1781,7 +1781,7 @@ std::vector<std::byte> ImageConversion::convertFileToImageData(std::span<const s
17811781
}
17821782

17831783
// QOI header
1784-
if (fileData.size() >= 26 && *reinterpret_cast<const uint32_t*>(fileData.data()) == parser::binary::makeFourCC("fioq")) {
1784+
if (fileData.size() >= 26 && *reinterpret_cast<const uint32_t*>(fileData.data()) == parser::binary::makeFourCC("qoif")) {
17851785
qoi_desc descriptor;
17861786
const ::stb_ptr<std::byte> qoiImage{
17871787
static_cast<std::byte*>(qoi_decode(fileData.data(), fileData.size(), &descriptor, 0)),

0 commit comments

Comments
 (0)