From 84ee6512ed70e4eeb37559e2ed1d830d198c8a15 Mon Sep 17 00:00:00 2001 From: pkviet Date: Sun, 2 Jul 2017 23:50:56 +0200 Subject: avdevice/decklink_enc: enable 16 output channel Decklink devices can output 2, 8 or 16 audio channels along video. The code was limited to 2 or 8 channels. The commit enables 16 audio channels (relevant for SDI outputs). Signed-off-by: Marton Balint --- libavdevice/decklink_enc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavdevice/decklink_enc.cpp') diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp index be01bcd64c..25ce7d026c 100644 --- a/libavdevice/decklink_enc.cpp +++ b/libavdevice/decklink_enc.cpp @@ -172,9 +172,9 @@ static int decklink_setup_audio(AVFormatContext *avctx, AVStream *st) " Only 48kHz is supported.\n"); return -1; } - if (c->channels != 2 && c->channels != 8) { + if (c->channels != 2 && c->channels != 8 && c->channels != 16) { av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels!" - " Only stereo and 7.1 are supported.\n"); + " Only 2, 8 or 16 channels are supported.\n"); return -1; } if (ctx->dlo->EnableAudioOutput(bmdAudioSampleRate48kHz, -- cgit v1.2.1