Mercurial > mplayer.hg
changeset 29133:4486594b6687
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
author | diego |
---|---|
date | Sun, 12 Apr 2009 21:28:45 +0000 |
parents | b226cc9b492c |
children | ede1c13e8865 |
files | libmpcodecs/ad_ffmpeg.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;