mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-26 21:58:22 +01:00
Merge "idec: fix WebPIUpdate failure"
This commit is contained in:
commit
85b6ff6897
@ -312,12 +312,12 @@ static int CopyParts0Data(WebPIDecoder* idec) {
|
|||||||
}
|
}
|
||||||
memcpy(part0_buf, br->buf_, psize);
|
memcpy(part0_buf, br->buf_, psize);
|
||||||
mem->part0_buf_ = part0_buf;
|
mem->part0_buf_ = part0_buf;
|
||||||
mem->start_ += psize;
|
|
||||||
br->buf_ = part0_buf;
|
br->buf_ = part0_buf;
|
||||||
br->buf_end_ = part0_buf + psize;
|
br->buf_end_ = part0_buf + psize;
|
||||||
} else {
|
} else {
|
||||||
// Else: just keep pointers to the partition #0's data in dec_->br_.
|
// Else: just keep pointers to the partition #0's data in dec_->br_.
|
||||||
}
|
}
|
||||||
|
mem->start_ += psize;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user