Commit f3e22e32 authored by Marton Balint's avatar Marton Balint

avdevice/decklink_common: properly check DoesSupportVideoMode result when trying VANC flag

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent e036b8dc
......@@ -256,7 +256,7 @@ int ff_decklink_set_format(AVFormatContext *avctx,
} else {
if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
bmdVideoOutputVANC,
&support, NULL) != S_OK) {
&support, NULL) != S_OK || support != bmdDisplayModeSupported) {
/* Try without VANC enabled */
if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
bmdVideoOutputFlagDefault,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment