Skip to content

Commit 759e4a1

Browse files
committed
workaround to a buggy GPUJPEG
1 parent 7e95217 commit 759e4a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video_decompress/gpujpeg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ static decompress_status gpujpeg_probe_internal_codec(unsigned char *buffer, siz
187187
#if GPUJPEG_VERSION_INT >= GPUJPEG_MK_VERSION_INT(0, 20, 0)
188188
struct gpujpeg_parameters params;
189189
gpujpeg_set_default_parameters(&params);
190+
params.restart_interval = 0; // workaround for broken GPUJPEG from 2024-04 to 2024-08
190191
params.verbose = MAX(0, log_level - LOG_LEVEL_INFO);
191192
if (gpujpeg_decoder_get_image_info(buffer, len, &image_params, &params, NULL) != 0) {
192193
#else

0 commit comments

Comments
 (0)