From 7f22685fa3752c7721b513aa011027319bec24ce Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 23 Aug 2014 15:17:31 +0200 Subject: decoder/dsdiff: eliminate local variable "buffer_samples" --- src/decoder/plugins/DsdiffDecoderPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3