diff options
author | pkviet <pkv.stream@gmail.com> | 2017-07-02 23:50:56 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-08-27 17:55:43 +0200 |
commit | 84ee6512ed70e4eeb37559e2ed1d830d198c8a15 (patch) | |
tree | 684a20c1ea0aa50b22ad848ca85bcbea0db51cfa | |
parent | 76a8b5e7adbb3b94611c8a7207003711c4473a1f (diff) | |
download | ffmpeg-84ee6512ed70e4eeb37559e2ed1d830d198c8a15.tar.gz |
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 <cus@passwd.hu>
-rw-r--r-- | libavdevice/decklink_enc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |