Merge "vp8l_enc: fix non-C90 code" into main

This commit is contained in:
Vincent Rabaud 2023-09-15 06:45:52 +00:00 committed by Gerrit Code Review
commit c1ffd9ac75

View File

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