Showing the changes to libavdevice/decklink_common.cpp (1 of 5 files). Show all
Unified · Split
| @@ -171,6 +171,11 @@ int ff_decklink_set_configs(AVFormatContext *avctx, · 170 unmodified lines | ||
| 171 | 171 | if (ret < 0) |
| 172 | 172 | return ret; |
| 173 | 173 | } |
| 174 | + if (direction == DIRECTION_OUT && cctx->timing_offset != INT_MIN) { | |
| 175 | + res = ctx->cfg->SetInt(bmdDeckLinkConfigReferenceInputTimingOffset, cctx->timing_offset); | |
| 176 | + if (res != S_OK) | |
| 177 | + av_log(avctx, AV_LOG_WARNING, "Setting timing offset failed.\n"); | |
| 178 | + } | |
| 174 | 179 | return 0; |
| 175 | 180 | } |
| 176 | 181 | |