[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mplayer-dev-eng
Subject:    [MPlayer-dev-eng] [Patch] Fix eac3 channel ordering
From:       Andrew de Quincey <adq_dvb () lidskialf ! net>
Date:       2009-04-11 13:27:29
Message-ID: 20090411142729.548366wd2zq97cao () lidskialf ! net
[Download RAW message or body]

This message is in MIME format.


Hi, this is a resubmission of my original patch with the libmpdemux  
code removed; this now *only* fixes the EAC3 channel ordering.

Basically, there's no special handling for the "eac3" codec in  
libmpcodecs/ad_ffmpeg.c, so it uses the default, which is wrong for  
that codec.


["fix-eac-channel-ordering.patch" (text/x-patch)]

Index: libmpcodecs/ad_ffmpeg.c
===================================================================
--- libmpcodecs/ad_ffmpeg.c	(revision 29169)
+++ libmpcodecs/ad_ffmpeg.c	(working copy)
@@ -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;


_______________________________________________
MPlayer-dev-eng mailing list
MPlayer-dev-eng@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic