mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-26 09:01:35 +01:00
Tweak png.decoder.decode_image_config indentation
This commit is contained in:
1 parent
e6733aec19
commit
d8ad363ef5
2 files changed
+4
-3
No files matched your search
@@ -36761,7 +36761,7 @@ wuffs_png__decoder__decode_image_config(
|
|||||||
if (self->private_impl.f_call_sequence != 0) {
|
if (self->private_impl.f_call_sequence != 0) {
|
||||||
status = wuffs_base__make_status(wuffs_base__error__bad_call_sequence);
|
status = wuffs_base__make_status(wuffs_base__error__bad_call_sequence);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
} else {
|
||||||
{
|
{
|
||||||
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(1);
|
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(1);
|
||||||
uint64_t t_0;
|
uint64_t t_0;
|
||||||
@@ -36889,6 +36889,7 @@ wuffs_png__decoder__decode_image_config(
|
|||||||
status = wuffs_base__make_status(wuffs_png__error__bad_checksum);
|
status = wuffs_base__make_status(wuffs_png__error__bad_checksum);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
while (true) {
|
while (true) {
|
||||||
{
|
{
|
||||||
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(8);
|
WUFFS_BASE__COROUTINE_SUSPENSION_POINT(8);
|
||||||
|
|||||||
@@ -113,8 +113,7 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
|||||||
|
|
||||||
if this.call_sequence <> 0 {
|
if this.call_sequence <> 0 {
|
||||||
return base."#bad call sequence"
|
return base."#bad call sequence"
|
||||||
}
|
} else {
|
||||||
|
|
||||||
magic = args.src.read_u64le?()
|
magic = args.src.read_u64le?()
|
||||||
if magic <> '\x89PNG\x0D\x0A\x1A\x0A'le {
|
if magic <> '\x89PNG\x0D\x0A\x1A\x0A'le {
|
||||||
return "#bad header"
|
return "#bad header"
|
||||||
@@ -147,6 +146,7 @@ pub func decoder.decode_image_config?(dst: nptr base.image_config, src: base.io_
|
|||||||
if (not this.ignore_checksum) and (checksum_have <> checksum_want) {
|
if (not this.ignore_checksum) and (checksum_have <> checksum_want) {
|
||||||
return "#bad checksum"
|
return "#bad checksum"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Read up until an IDAT chunk.
|
// Read up until an IDAT chunk.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in new issue
Block a user