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).
Showing the changes to libavdevice (1 of 1 file). Show all
Unified · Split
| @@ -172,9 +172,9 @@ static int decklink_setup_audio(AVFormatContext *avctx, AVStream *st) · 171 unmodified lines | |||
| 172 | " Only 48kHz is supported.\n"); | 172 | " Only 48kHz is supported.\n"); |
| 173 | return -1; | 173 | return -1; |
| 174 | } | 174 | } |
| 175 | if (c->channels != 2 && c->channels != 8) { | 175 | if (c->channels != 2 && c->channels != 8 && c->channels != 16) { |
| 176 | av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels!" | 176 | 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"); |
| 178 | return -1; | 178 | return -1; |
| 179 | } | 179 | } |
| 180 | if (ctx->dlo->EnableAudioOutput(bmdAudioSampleRate48kHz, | 180 | if (ctx->dlo->EnableAudioOutput(bmdAudioSampleRate48kHz, |