From 46c18c9be90dc99cd4e25946e2e0c743a2101aba Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 9 Aug 2024 11:21:37 +0200 Subject: [PATCH] workaround to a buggy GPUJPEG --- src/video_decompress/gpujpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_decompress/gpujpeg.c b/src/video_decompress/gpujpeg.c index 21477d122..a3e74801d 100644 --- a/src/video_decompress/gpujpeg.c +++ b/src/video_decompress/gpujpeg.c @@ -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(¶ms); + 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, ¶ms, NULL) != 0) { #else