summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/decode/ad_spdif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/decode/ad_spdif.c b/audio/decode/ad_spdif.c
index 393af8a2a3..bb110cbed4 100644
--- a/audio/decode/ad_spdif.c
+++ b/audio/decode/ad_spdif.c
@@ -226,7 +226,7 @@ static int init_filter(struct mp_filter *da)
num_channels = dts_hd_spdif_channel_count;
} else {
sample_format = AF_FORMAT_S_DTS;
- samplerate = 48000;
+ samplerate = c_rate > 44100 ? 48000 : 44100;
num_channels = 2;
}
break;