History

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

Marton Balint committed 7 years ago

Commit f3e22e31 parent e036b8d1 file · +1 −1Browse files

Unified · Split

libavdevice/decklink_common.cpp+1−1
@@ -256,7 +256,7 @@ int ff_decklink_set_format(AVFormatContext *avctx, · 255 unmodified lines
256256 } else {
257257 if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
258258 bmdVideoOutputVANC,
259− &support, NULL) != S_OK) {
259+ &support, NULL) != S_OK || support != bmdDisplayModeSupported) {
260260 /* Try without VANC enabled */
261261 if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
262262 bmdVideoOutputFlagDefault,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t