mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
webp: Fix VP8LBitWriterClone() bug
dst->cur_ was not set. The bug occurred only with several VP8LBitWriter instances (thread_level > 0) and in 32-bit (in 64-bit, src->cur_ was always 0 in VP8LBitWriterClone()). BUG=chromium:917029 Change-Id: I0d94a3d8e62b247fd616eebe1009868dc8a5ed2e
This commit is contained in:
parent
5173d4ee6f
commit
928a75deca
@ -248,6 +248,7 @@ int VP8LBitWriterClone(const VP8LBitWriter* const src,
|
|||||||
dst->bits_ = src->bits_;
|
dst->bits_ = src->bits_;
|
||||||
dst->used_ = src->used_;
|
dst->used_ = src->used_;
|
||||||
dst->error_ = src->error_;
|
dst->error_ = src->error_;
|
||||||
|
dst->cur_ = dst->buf_ + current_size;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user