libobs/media-io: Avoid scaler for range diff

Green tint appears when using converting full NV12 to limited NV12 with
swscale, so just avoid creating scaler by color range for now.
This commit is contained in:
jpark37 2022-09-23 23:02:43 -07:00 committed by Jim
parent 1249ebe53d
commit 5af9c87e1b

View file

@ -297,7 +297,11 @@ static size_t video_get_input_idx(const video_t *video,
static bool match_range(enum video_range_type a, enum video_range_type b)
{
return (a == VIDEO_RANGE_FULL) == (b == VIDEO_RANGE_FULL);
//return (a == VIDEO_RANGE_FULL) == (b == VIDEO_RANGE_FULL);
/* TODO: Restore test when full NV12 to limited NV12 works */
UNUSED_PARAMETER(a);
UNUSED_PARAMETER(b);
return true;
}
static enum video_colorspace collapse_space(enum video_colorspace cs)