diff options
author | Marton Balint | 2019-03-14 02:13:56 +0100 |
---|---|---|
committer | Marton Balint | 2019-04-15 22:22:31 +0200 |
commit | f3e22e32014221d0f089f9cd2d7c6ea3e35da164 (patch) | |
tree | e1b7b13783cc235aacc929f1ee7e88a5df0434a4 /libavdevice | |
parent | e036b8dcf46dabe00f1cb535d185db0c681942e7 (diff) |
avdevice/decklink_common: properly check DoesSupportVideoMode result when trying VANC flag
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/decklink_common.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/decklink_common.cpp b/libavdevice/decklink_common.cpp index d3cc1eb3d1..3902311edd 100644 --- a/libavdevice/decklink_common.cpp +++ b/libavdevice/decklink_common.cpp @@ -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, |