From 98bbe35b5157b3e3a7c2e7de6b2a94fde4480bc1 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 27 Apr 2021 16:54:03 +0200 Subject: [PATCH] Fix multi-threading with palettes. Change-Id: Ifa23378c1f9c489d5963b4928781e104a14eb01a --- src/enc/vp8l_enc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/enc/vp8l_enc.c b/src/enc/vp8l_enc.c index 72506cfc..611e7d3e 100644 --- a/src/enc/vp8l_enc.c +++ b/src/enc/vp8l_enc.c @@ -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.