summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpcodecs/ad_hwac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_hwac3.c b/libmpcodecs/ad_hwac3.c
index f9444b3f24..5c68a2dde8 100644
--- a/libmpcodecs/ad_hwac3.c
+++ b/libmpcodecs/ad_hwac3.c
@@ -148,7 +148,7 @@ static int preinit(sh_audio_t *sh)
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)
+ if (sh->format == 0x2001)
sh->sample_format = AF_FORMAT_AC3_NE;
return 1;
}