mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-06 23:09:58 +00:00
Merge branch 'main' into beta
This commit is contained in:
commit
efd8a71b9f
2
laf
2
laf
@ -1 +1 @@
|
|||||||
Subproject commit 56b72b6b03f8411115c4bd201b6896340eee08e1
|
Subproject commit a6e51dcc134e42e27ce96b0b634de28599ab49b3
|
@ -1,5 +1,5 @@
|
|||||||
// Aseprite Document IO Library
|
// Aseprite Document IO Library
|
||||||
// Copyright (c) 2018-2021 Igara Studio S.A.
|
// Copyright (c) 2018-2022 Igara Studio S.A.
|
||||||
// Copyright (c) 2001-2018 David Capello
|
// Copyright (c) 2001-2018 David Capello
|
||||||
//
|
//
|
||||||
// This file is released under the terms of the MIT license.
|
// This file is released under the terms of the MIT license.
|
||||||
@ -616,6 +616,16 @@ void read_compressed_image_templ(FileInterface* f,
|
|||||||
}
|
}
|
||||||
|
|
||||||
size_t bytes_read = f->readBytes(&compressed[0], input_bytes);
|
size_t bytes_read = f->readBytes(&compressed[0], input_bytes);
|
||||||
|
|
||||||
|
// Error reading "input_bytes" bytes, broken file? chunk without
|
||||||
|
// enough compressed data?
|
||||||
|
if (bytes_read == 0) {
|
||||||
|
delegate->error(
|
||||||
|
fmt::format("Error reading {} bytes of compressed data",
|
||||||
|
input_bytes));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
zstream.next_in = (Bytef*)&compressed[0];
|
zstream.next_in = (Bytef*)&compressed[0];
|
||||||
zstream.avail_in = bytes_read;
|
zstream.avail_in = bytes_read;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user