From 53faf77d20d75247b1630ba9378d3df9e0b57646 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 26 Jun 2019 15:41:07 +0200 Subject: [PATCH] pcm/Export: use the "channels" attribute in GetFrameSize() --- src/pcm/Export.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/Export.cxx b/src/pcm/Export.cxx index 807bfa734..99c0ba652 100644 --- a/src/pcm/Export.cxx +++ b/src/pcm/Export.cxx @@ -119,7 +119,7 @@ PcmExport::GetFrameSize(const AudioFormat &audio_format) const noexcept { if (pack24) /* packed 24 bit samples (3 bytes per sample) */ - return audio_format.channels * 3; + return channels * 3; #ifdef ENABLE_DSD switch (dsd_mode) {