mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 21:40:20 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user