decklink: Always output BGRA

This commit is contained in:
jpark37
2022-11-19 15:24:26 -08:00
committed by Jim
parent 34a43aa4f1
commit 0c4e7c4142
2 changed files with 11 additions and 32 deletions
+2 -8
View File
@@ -81,16 +81,10 @@ static bool decklink_output_start(void *data)
decklink->SetSize(mode->GetWidth(), mode->GetHeight());
struct video_scale_info to = {};
if (decklink->keyerMode != 0) {
to.format = VIDEO_FORMAT_BGRA;
to.range = VIDEO_RANGE_FULL;
} else {
to.format = VIDEO_FORMAT_UYVY;
to.range = VIDEO_RANGE_PARTIAL;
}
to.format = VIDEO_FORMAT_BGRA;
to.width = mode->GetWidth();
to.height = mode->GetHeight();
to.range = VIDEO_RANGE_FULL;
to.colorspace = VIDEO_CS_709;
obs_output_set_video_conversion(decklink->GetOutput(), &to);