Fix AC3 dowmix

This commit is contained in:
jojo61
2021-01-26 09:17:39 +01:00
parent cb4515f6b7
commit d553a8108d
2 changed files with 13 additions and 7 deletions

View File

@@ -784,7 +784,7 @@ void CodecAudioOpen(AudioDecoder * audio_decoder, int codec_id)
}
if (CodecDownmix) {
audio_decoder->AudioCtx->request_channel_layout = AV_CH_LAYOUT_STEREO_DOWNMIX;
audio_decoder->AudioCtx->request_channel_layout = AV_CH_LAYOUT_STEREO;
}
pthread_mutex_lock(&CodecLockMutex);
// open codec