Fix multi-threading with palettes.

Change-Id: Ifa23378c1f9c489d5963b4928781e104a14eb01a
This commit is contained in:
Vincent Rabaud 2021-04-27 16:54:03 +02:00
parent b1674240f9
commit 98bbe35b51

View File

@ -1973,6 +1973,8 @@ WebPEncodingError VP8LEncodeStream(const WebPConfig* const config,
enc_side->palette_size_ = enc_main->palette_size_;
memcpy(enc_side->palette_, enc_main->palette_,
sizeof(enc_main->palette_));
memcpy(enc_side->palette_sorted_, enc_main->palette_sorted_,
sizeof(enc_main->palette_sorted_));
param->enc_ = enc_side;
}
// Create the workers.