[FFmpeg-devel] [PATCH] libavdevice/decklink: enable 16 output channel
pkv.stream
pkv.stream at gmail.com
Wed Aug 23 19:51:45 EEST 2017
Hello
the following patch extends number of output channel for decklink
devices to 16. Previously it was limited to 2 or 8 audio channels.
Thanks for any comments.
-------------- next part --------------
From 681e389e4946e079d7db5892f98a82a5b75ad297 Mon Sep 17 00:00:00 2001
From: pkviet <pkv.stream at gmail.com>
Date: Sun, 2 Jul 2017 23:50:56 +0200
Subject: [PATCH] libavdevice/decklink: 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).
---
libavdevice/decklink_enc.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp
index be01bcd..25ce7d0 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,
--
2.10.1.windows.1
More information about the ffmpeg-devel
mailing list