mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
Fix E-AC-3 channel ordering. E-AC-3 needs to use the same ordering as AC-3,
not the standard ordering. patch by Andrew de Quincey, adq_dvb lidskialf net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29173 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a19db0165d
commit
77546eb754
@ -175,7 +175,8 @@ static int decode_audio(sh_audio_t *sh_audio,unsigned char *buf,int minlen,int m
|
||||
if (((AVCodecContext *)sh_audio->context)->channels >= 5) {
|
||||
int src_ch_layout = AF_CHANNEL_LAYOUT_MPLAYER_DEFAULT;
|
||||
const char *codec=((AVCodecContext*)sh_audio->context)->codec->name;
|
||||
if (!strcasecmp(codec, "ac3"))
|
||||
if (!strcasecmp(codec, "ac3")
|
||||
|| !strcasecmp(codec, "eac3"))
|
||||
src_ch_layout = AF_CHANNEL_LAYOUT_LAVC_AC3_DEFAULT;
|
||||
else if (!strcasecmp(codec, "dca"))
|
||||
src_ch_layout = AF_CHANNEL_LAYOUT_LAVC_DCA_DEFAULT;
|
||||
|
Loading…
Reference in New Issue
Block a user