Skip to content

Commit c2c06df

Browse files
committed
do not print test img hint on wrong extension
it was intended to be shown on `gpujpegtool exts` but not on `gpujpegtool -d in.jpg out.bla`
1 parent 09c7ec8 commit c2c06df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/gpujpeg_common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,9 @@ gpujpeg_image_get_file_format(const char* filename)
425425
return extensions[i].format;
426426
}
427427
}
428-
PRINTF("\nUse \"help.tst\" (eg. `gpujpegtool help.tst null.jpg`) for test image usage).\n");
428+
if ( strcmp(ext, "help") == 0 ) {
429+
PRINTF("\nUse \"help.tst\" (eg. `gpujpegtool help.tst null.jpg`) for test image usage).\n");
430+
}
429431
return GPUJPEG_IMAGE_FILE_UNKNOWN;
430432
}
431433

0 commit comments

Comments
 (0)