From bdf8fafe2ff0641d272d74a6d703642d91d7e86d Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Fri, 15 May 2020 15:22:38 +0200 Subject: [PATCH] GPUJPEG dec.: if no colorspace, assume YCbCr If no explicit color space was detected, assume that this is YCbCr. This fixes a problem with FFmpeg generated JPEGs that don't contain any APP marker. --- src/video_decompress/gpujpeg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/video_decompress/gpujpeg.c b/src/video_decompress/gpujpeg.c index 0c1dd6348..6100e8085 100644 --- a/src/video_decompress/gpujpeg.c +++ b/src/video_decompress/gpujpeg.c @@ -193,8 +193,7 @@ static decompress_status gpujpeg_probe_internal_codec(unsigned char *buffer, siz } if (!params.color_space) { - log_msg(LOG_LEVEL_WARNING, MOD_NAME "probe - image color space is unknown!\n"); - return DECODER_GOT_FRAME; + params.color_space = GPUJPEG_YCBCR_BT601_256LVLS; } switch ( params.color_space ) {