# HG changeset patch # User diego # Date 1239571725 0 # Node ID 4486594b6687a8f1fdb35d093f6d474a7f26ee87 # Parent b226cc9b492cfcb75bb578495c71dcd6555e8bc1 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 diff -r b226cc9b492c -r 4486594b6687 libmpcodecs/ad_ffmpeg.c --- a/libmpcodecs/ad_ffmpeg.c Sun Apr 12 20:44:20 2009 +0000 +++ b/libmpcodecs/ad_ffmpeg.c Sun Apr 12 21:28:45 2009 +0000 @@ -175,7 +175,8 @@ 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;