mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
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:
parent
1249ebe53d
commit
5af9c87e1b
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue