Skip to content

Commit

Permalink
Do not force channel layout to stereo when downmixing to stereo when …
Browse files Browse the repository at this point in the history
…input is not and rely on downmixing code

Makes EAC3 7.1 decoding ok

See nova-video-player/aos-AVP#1355
  • Loading branch information
courville committed Dec 28, 2024
1 parent 540d171 commit 04ea9b3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/codec_ffmpeg_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ serprintf("cannot find codec\r\n");
p->actx->bit_rate = audio->bytesPerSec * 8;
p->actx->channels = audio->channels;
p->actx->request_channel_layout = av_get_default_channel_layout(audio->channels);
if (p->request_channels == 2)
p->actx->request_channel_layout = av_get_default_channel_layout(audio->channels ? MIN(2, audio->channels) : 2);

DBGCA2 serprintf("requested channel layout id %d for %d channel(s)\r\n", p->actx->request_channel_layout, p->actx->channels);

Expand Down

0 comments on commit 04ea9b3

Please sign in to comment.