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:
diego 2009-04-12 21:28:45 +00:00
parent a19db0165d
commit 77546eb754
1 changed files with 2 additions and 1 deletions

View File

@ -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;