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

Showing the changes to libavdevice/decklink_common.cpp (1 of 1 file). Show all

Unified · Split

libavdevice/decklink_common.cpp+1−1
@@ -256,7 +256,7 @@ int ff_decklink_set_format(AVFormatContext *avctx, · 255 unmodified lines
256 } else {256 } else {
257 if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,257 if (!ctx->supports_vanc || ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
258 bmdVideoOutputVANC,258 bmdVideoOutputVANC,
259 &support, NULL) != S_OK) {259 &support, NULL) != S_OK || support != bmdDisplayModeSupported) {
260 /* Try without VANC enabled */260 /* Try without VANC enabled */
261 if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,261 if (ctx->dlo->DoesSupportVideoMode(ctx->bmd_mode, ctx->raw_format,
262 bmdVideoOutputFlagDefault,262 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