Fix errors when compiling code as C++

Change-Id: Iba94e24e764038640f39d61fb2bc9cfb3434cc8f
This commit is contained in:
Vincent Rabaud
2024-07-10 10:30:48 +02:00
parent c1c89f5189
commit 41a5e582c2
3 changed files with 9 additions and 8 deletions

View File

@ -1412,9 +1412,9 @@ static int MapImageFromPalette(VP8LEncoder* const enc) {
}
// Save palette_[] to bitstream.
static WebPEncodingError EncodePalette(VP8LBitWriter* const bw, int low_effort,
VP8LEncoder* const enc,
int percent_range, int* const percent) {
static int EncodePalette(VP8LBitWriter* const bw, int low_effort,
VP8LEncoder* const enc, int percent_range,
int* const percent) {
int i;
uint32_t tmp_palette[MAX_PALETTE_SIZE];
const int palette_size = enc->palette_size_;