summaryrefslogtreecommitdiff
path: root/libavdevice/decklink_enc.cpp
diff options
context:
space:
mode:
authorKarthick J <kjeyapal@akamai.com>2017-11-07 09:32:23 +0530
committerMarton Balint <cus@passwd.hu>2017-11-21 22:55:49 +0100
commitaa7b0329ff282ea8afb3c26dcbbc64209a280219 (patch)
tree4146710600547c5c2c321fca8eff5c8cbce9d54a /libavdevice/decklink_enc.cpp
parent0e7865ce4152f8b04cda6a698bbee4fd4a94009d (diff)
downloadffmpeg-aa7b0329ff282ea8afb3c26dcbbc64209a280219.tar.gz
avdevice/decklink: refactor ff_decklink_set_format function
This is done to enable input format autodetection in decklink_dec. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice/decklink_enc.cpp')
-rw-r--r--libavdevice/decklink_enc.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index 81df563b3b..c06ca4668f 100644
--- a/libavdevice/decklink_enc.cpp
+++ b/libavdevice/decklink_enc.cpp
@@ -162,6 +162,10 @@ static int decklink_setup_video(AVFormatContext *avctx, AVStream *st)
return -1;
}
+ if (ff_decklink_set_configs(avctx, DIRECTION_OUT) < 0) {
+ av_log(avctx, AV_LOG_ERROR, "Could not set output configuration\n");
+ return -1;
+ }
if (ff_decklink_set_format(avctx, c->width, c->height,
st->time_base.num, st->time_base.den, c->field_order)) {
av_log(avctx, AV_LOG_ERROR, "Unsupported video size, framerate or field order!"