Skip to content

Commit 67b30a9

Browse files
committed
fix wrong condition for channel remap
refers to GH-102
1 parent 03e07d1 commit 67b30a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gpujpeg_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ enc_opt_set_channel_remap(struct gpujpeg_encoder* encoder, const char* val)
664664
printf("\t\"1230\" or \"123F\" to map ARGB to RGBA\n");
665665
return GPUJPEG_ERROR;
666666
}
667-
if ( strlen(val) >= GPUJPEG_MAX_COMPONENT_COUNT ) {
667+
if ( strlen(val) > GPUJPEG_MAX_COMPONENT_COUNT ) {
668668
ERROR_MSG("Mapping for more than %d channels specified!\n", GPUJPEG_MAX_COMPONENT_COUNT);
669669
return GPUJPEG_ERROR;
670670
}

0 commit comments

Comments
 (0)