Skip to content

Commit

Permalink
Fix "compresion" typo
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
y-guyon committed Nov 9, 2023
1 parent 89af49d commit e939360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/avifgainmaputil/imageio.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ avifResult WriteImage(const avifImage* image,
return AVIF_RESULT_UNKNOWN_ERROR;
}
} else if (output_format == AVIF_APP_FILE_FORMAT_PNG) {
const int compresion_level = Clamp(10 - speed, 0, 9);
const int compression_level = Clamp(10 - speed, 0, 9);
if (!avifPNGWrite(output_filename.c_str(), image, image->depth,
AVIF_CHROMA_UPSAMPLING_AUTOMATIC, compresion_level)) {
AVIF_CHROMA_UPSAMPLING_AUTOMATIC, compression_level)) {
return AVIF_RESULT_UNKNOWN_ERROR;
}
} else if (output_format == AVIF_APP_FILE_FORMAT_AVIF) {
Expand Down

0 comments on commit e939360

Please sign in to comment.