History

avdevice/decklink: add link configuration option

Limin Wang committed 5 years ago

Commit b923bfc1 parent ca788d16 files · +31 −0Browse files

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

Unified · Split

libavdevice/decklink_common.cpp+9−0
@@ -214,6 +214,15 @@ int ff_decklink_set_configs(AVFormatContext *avctx, · 213 unmodified lines
214214 if (res != S_OK)
215215 av_log(avctx, AV_LOG_WARNING, "Setting timing offset failed.\n");
216216 }
217+
218+ if (direction == DIRECTION_OUT && ctx->link > 0) {
219+ res = ctx->cfg->SetInt(bmdDeckLinkConfigSDIOutputLinkConfiguration, ctx->link);
220+ if (res != S_OK)
221+ av_log(avctx, AV_LOG_WARNING, "Setting link configuration failed.\n");
222+ else
223+ av_log(avctx, AV_LOG_VERBOSE, "Successfully set link configuration: 0x%x.\n", ctx->link);
224+ }
225+
217226 return 0;
218227 }
219228

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