History

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).

pkviet committed 9 years ago

Commit 84ee6511 parent 76a8b5e1 file · +2 −2Browse files

Unified · Split

libavdevice/decklink_enc.cpp+2−2
@@ -172,9 +172,9 @@ static int decklink_setup_audio(AVFormatContext *avctx, AVStream *st) · 171 unmodified lines
172172 " Only 48kHz is supported.\n");
173173 return -1;
174174 }
175− if (c->channels != 2 && c->channels != 8) {
175+ if (c->channels != 2 && c->channels != 8 && c->channels != 16) {
176176 av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels!"
177− " Only stereo and 7.1 are supported.\n");
177+ " Only 2, 8 or 16 channels are supported.\n");
178178 return -1;
179179 }
180180 if (ctx->dlo->EnableAudioOutput(bmdAudioSampleRate48kHz,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t