This commit is contained in:
sonilyan 2024-04-22 16:15:56 +03:00 committed by GitHub
commit ba5d41070a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1146,7 +1146,7 @@ int artRead(const char* path, unsigned char* data)
for (int index = 0; index < ROTATION_COUNT; index++) { for (int index = 0; index < ROTATION_COUNT; index++) {
art->padding[index] = currentPadding; art->padding[index] = currentPadding;
if (index == 0 || art->dataOffsets[index - 1] != art->dataOffsets[index]) { if (index == 0 || (art->dataOffsets[index - 1] != art->dataOffsets[index] && art->dataOffsets[index] < art->dataSize)) {
art->padding[index] += previousPadding; art->padding[index] += previousPadding;
currentPadding += previousPadding; currentPadding += previousPadding;
if (artReadFrameData(data + sizeof(Art) + art->dataOffsets[index] + art->padding[index], stream, art->frameCount, &previousPadding) != 0) { if (artReadFrameData(data + sizeof(Art) + art->dataOffsets[index] + art->padding[index], stream, art->frameCount, &previousPadding) != 0) {