Decklink: only use RGBA when using keyer

This commit is contained in:
Colin Edwards 2019-01-04 22:25:08 -06:00
commit e296855d14
2 changed files with 27 additions and 7 deletions

View file

@ -61,7 +61,12 @@ static bool decklink_output_start(void *data)
decklink->SetSize(mode->GetWidth(), mode->GetHeight());
struct video_scale_info to = {};
to.format = VIDEO_FORMAT_BGRA;
if (decklink->keyerMode != 0) {
to.format = VIDEO_FORMAT_BGRA;
} else {
to.format = VIDEO_FORMAT_UYVY;
}
to.width = mode->GetWidth();
to.height = mode->GetHeight();