Selaa lähdekoodia

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.
jpark37 3 vuotta sitten
vanhempi
sitoutus
b27c899761
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      libobs/media-io/video-io.c

+ 5 - 1
libobs/media-io/video-io.c

@@ -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)