Skip to content

Commit 56fde99

Browse files
committed
gpujpeg_reader: fixed an assertion
Since the change in the commit c8ef940 (2026-01-14), gpujpeg failed in adjust_pixel_forma() if GPUJPEG_PIXFMT_NO_ALPHA as pixel format was selected (mainly used by gpujpegtool). At least in the binary builds, GPUJPEG is build without asserts, however.
1 parent e8bc98f commit 56fde99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpujpeg_reader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,8 +1549,8 @@ get_native_pixel_format(struct gpujpeg_parameters* param)
15491549

15501550
static enum gpujpeg_pixel_format
15511551
adjust_pixel_format(struct gpujpeg_parameters * param, struct gpujpeg_image_parameters * param_image) {
1552-
assert(param_image->pixel_format == GPUJPEG_PIXFMT_AUTODETECT || param_image->pixel_format == GPUJPEG_PIXFMT_STD ||
1553-
param_image->pixel_format == GPUJPEG_PIXFMT_NATIVE);
1552+
assert(param_image->pixel_format == GPUJPEG_PIXFMT_AUTODETECT || param_image->pixel_format == GPUJPEG_PIXFMT_NO_ALPHA ||
1553+
param_image->pixel_format == GPUJPEG_PIXFMT_STD || param_image->pixel_format == GPUJPEG_PIXFMT_NATIVE);
15541554
GPUJPEG_ASSERT(param->comp_count != 2);
15551555

15561556
if ( param->comp_count == 1 ) {

0 commit comments

Comments
 (0)