diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-12 18:37:23 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-01-12 18:37:23 +0000 |
commit | 071490a7a50afa319e6bc518018285c5177ce197 (patch) | |
tree | 0ba0ad8f1d72676fdb68f4d125b35c5f2dc702cc /libmpcodecs | |
parent | 52b2e49c2901ff4ca034aa3e64dabf799e29be7f (diff) |
Attempt a simple hack to fix -ac hwdts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30288 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ad_hwac3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/ad_hwac3.c b/libmpcodecs/ad_hwac3.c index 2309f2f3b5..f9444b3f24 100644 --- a/libmpcodecs/ad_hwac3.c +++ b/libmpcodecs/ad_hwac3.c @@ -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; } |