Commit e0fd9d2a authored by Steve Lhomme's avatar Steve Lhomme

es: assume the color range is full for YUV sources when unknown

This is done when we need to guess the best pick for all color space values.
parent 737b8faf
......@@ -455,6 +455,14 @@ static inline void video_format_AdjustColorSpace( video_format_t *p_fmt )
else
p_fmt->space = COLOR_SPACE_BT601;
}
if ( p_fmt->color_range == COLOR_RANGE_UNDEF )
{
if ( vlc_fourcc_IsYUV(p_fmt->i_chroma) )
p_fmt->color_range = COLOR_RANGE_LIMITED;
else
p_fmt->color_range = COLOR_RANGE_FULL;
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment