changeset 30246:f394b0820fda

Attempt a simple hack to fix -ac hwdts
author reimar
date Tue, 12 Jan 2010 18:37:23 +0000
parents bef93e623403
children 04639dec4eb8
files libmpcodecs/ad_hwac3.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_hwac3.c	Tue Jan 12 02:34:33 2010 +0000
+++ b/libmpcodecs/ad_hwac3.c	Tue Jan 12 18:37:23 2010 +0000
@@ -147,6 +147,9 @@
   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;
 }