mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-03 09:41:17 +08:00
avdevice/decklink_enc: add support for setting genlock timing offset
Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
@@ -171,6 +171,11 @@ int ff_decklink_set_configs(AVFormatContext *avctx,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
}
|
||||
if (direction == DIRECTION_OUT && cctx->timing_offset != INT_MIN) {
|
||||
res = ctx->cfg->SetInt(bmdDeckLinkConfigReferenceInputTimingOffset, cctx->timing_offset);
|
||||
if (res != S_OK)
|
||||
av_log(avctx, AV_LOG_WARNING, "Setting timing offset failed.\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user