Browse Source

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

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n4.2
Marton Balint 6 years ago
parent
commit
f3e22e3201
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/decklink_common.cpp

+ 1
- 1
libavdevice/decklink_common.cpp View File

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


Loading…
Cancel
Save