# HG changeset patch # User reimar # Date 1263321443 0 # Node ID f394b0820fda5948c3a4607d9fa3d305ba76191a # Parent bef93e623403a90c387111318d48d462fec4ca92 Attempt a simple hack to fix -ac hwdts diff -r bef93e623403 -r f394b0820fda libmpcodecs/ad_hwac3.c --- 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; }