Allow "nul" output for compressed images
@@ -1199,11 +1199,18 @@ int main(
}
else
{
+#if defined(_WIN32)
+ bool is_null = output_filename == "NUL" || output_filename == "nul";
+#else
+ bool is_null = output_filename == "/dev/null";
+#endif
+ if (!is_null)
+ {
printf("ERROR: Unknown compressed output file type\n");
-
return 1;
}
}
+ }
// Store decompressed image
if (operation & ASTCENC_STAGE_ST_NCOMP)
