diff options
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; } |