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.
This commit is contained in:
Martin Pulec
2020-05-15 15:22:38 +02:00
parent 3bae0c8f16
commit bdf8fafe2f

View File

@@ -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 ) {