vp8l_enc: fix non-C90 code

Change-Id: I14b5288c1b9392dcb64db09b9852f1d7d47b3200
This commit is contained in:
James Zern 2023-09-14 16:21:04 -07:00
parent 5fac76cf8d
commit f80e9b7e4c

View File

@ -325,7 +325,8 @@ static int EncoderAnalyze(VP8LEncoder* const enc,
if ((i != kPalette && i != kPaletteAndSpatial) || use_palette) {
assert(*crunch_configs_size < CRUNCH_CONFIGS_MAX);
if (use_palette && (i == kPalette || i == kPaletteAndSpatial)) {
for (int sorting_method = 0; sorting_method < kPaletteSortingNum;
int sorting_method;
for (sorting_method = 0; sorting_method < kPaletteSortingNum;
++sorting_method) {
const PaletteSorting typed_sorting_method =
(PaletteSorting)sorting_method;