Browse Source

decklink: Avoid swscale for color space

Any color space adjustments should be done on the GPU.
jpark37 2 years ago
parent
commit
7a3beec87b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugins/decklink/decklink-output.cpp

+ 3 - 1
plugins/decklink/decklink-output.cpp

@@ -36,7 +36,9 @@ static void *decklink_output_create(obs_data_t *settings, obs_output_t *output)
 		to.width = mode->GetWidth();
 		to.height = mode->GetHeight();
 		to.range = VIDEO_RANGE_FULL;
-		to.colorspace = VIDEO_CS_709;
+		struct obs_video_info ovi;
+		to.colorspace = obs_get_video_info(&ovi) ? ovi.colorspace
+							 : VIDEO_CS_DEFAULT;
 
 		obs_output_set_video_conversion(output, &to);
 	}