Skip to content

Commit

Permalink
workaround to a buggy GPUJPEG
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Aug 9, 2024
1 parent 4143900 commit 46c18c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video_decompress/gpujpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ static decompress_status gpujpeg_probe_internal_codec(unsigned char *buffer, siz
#if GPUJPEG_VERSION_INT >= GPUJPEG_MK_VERSION_INT(0, 20, 0)
struct gpujpeg_parameters params;
gpujpeg_set_default_parameters(&params);
params.restart_interval = 0; // workaround for broken GPUJPEG from 2024-04 to 2024-08
params.verbose = MAX(0, log_level - LOG_LEVEL_INFO);
if (gpujpeg_decoder_get_image_info(buffer, len, &image_params, &params, NULL) != 0) {
#else
Expand Down

0 comments on commit 46c18c9

Please sign in to comment.