Skip to content

Commit

Permalink
libobs/media-io: Avoid scaler for range diff
Browse files Browse the repository at this point in the history
Green tint appears when using converting full NV12 to limited NV12 with
swscale, so just avoid creating scaler by color range for now.
  • Loading branch information
jpark37 authored and RytoEX committed Sep 27, 2022
1 parent a776501 commit 5869466
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libobs/media-io/video-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5869466

Please sign in to comment.