[MPlayer-cvslog] r30288 - trunk/libmpcodecs/ad_hwac3.c

reimar subversion at mplayerhq.hu
Tue Jan 12 19:37:23 CET 2010


Author: reimar
Date: Tue Jan 12 19:37:23 2010
New Revision: 30288

Log:
Attempt a simple hack to fix -ac hwdts

Modified:
   trunk/libmpcodecs/ad_hwac3.c

Modified: trunk/libmpcodecs/ad_hwac3.c
==============================================================================
--- trunk/libmpcodecs/ad_hwac3.c	Tue Jan 12 03:34:33 2010	(r30287)
+++ trunk/libmpcodecs/ad_hwac3.c	Tue Jan 12 19:37:23 2010	(r30288)
@@ -147,6 +147,9 @@ static int preinit(sh_audio_t *sh)
   sh->channels = 2;
   sh->samplesize = 2;
   sh->sample_format = AF_FORMAT_AC3_BE;
+  // HACK for DTS where useless swapping can't easily be removed
+  if (sh_audio->format == 0x2001)
+    sh->sample_format = AF_FORMAT_AC3_NE;
   return 1;
 }
 


More information about the MPlayer-cvslog mailing list