aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-23 15:17:31 +0200
committerMax Kellermann <max@duempel.org>2014-08-23 15:17:31 +0200
commit7f22685fa3752c7721b513aa011027319bec24ce (patch)
tree17afd358efe793733073fd8c2316920b40027a0b
parent40db9dff3b74dfde97a537d10b11d649ab93d459 (diff)
downloadmpd-7f22685fa3752c7721b513aa011027319bec24ce.tar.gz
mpd-7f22685fa3752c7721b513aa011027319bec24ce.tar.xz
mpd-7f22685fa3752c7721b513aa011027319bec24ce.zip
decoder/dsdiff: eliminate local variable "buffer_samples"
-rw-r--r--src/decoder/plugins/DsdiffDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/plugins/DsdiffDecoderPlugin.cxx b/src/decoder/plugins/DsdiffDecoderPlugin.cxx
index a771ecf01..c81549134 100644
--- a/src/decoder/plugins/DsdiffDecoderPlugin.cxx
+++ b/src/decoder/plugins/DsdiffDecoderPlugin.cxx
@@ -363,8 +363,7 @@ dsdiff_decode_chunk(Decoder &decoder, InputStream &is,
const size_t sample_size = sizeof(buffer[0]);
const size_t frame_size = channels * sample_size;
const unsigned buffer_frames = sizeof(buffer) / frame_size;
- const unsigned buffer_samples = buffer_frames * frame_size;
- const size_t buffer_size = buffer_samples * sample_size;
+ const size_t buffer_size = buffer_frames * frame_size;
while (chunk_size >= frame_size) {
/* see how much aligned data from the remaining chunk