diff --git a/turbojpeg.c b/turbojpeg.c index feac3e88..148ab0f2 100644 --- a/turbojpeg.c +++ b/turbojpeg.c @@ -288,7 +288,7 @@ static void setCompDefaults(struct jpeg_compress_struct *cinfo, cinfo->in_color_space = pf2cs[pixelFormat]; cinfo->input_components = tjPixelSize[pixelFormat]; #ifndef NO_GETENV - if (!GETENV_S(env, 7, "TJ_REVERTe") && !strcmp(env, "1")) + if (!GETENV_S(env, 7, "TJ_REVERT") && !strcmp(env, "1")) cinfo->master->compress_profile=JCP_FASTEST; #endif jpeg_set_defaults(cinfo);