diff options
author | Max Kellermann <max@duempel.org> | 2013-11-23 18:30:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-23 18:30:12 +0100 |
commit | 73f45d87d5d3fd078bdf9acd3077e4c8b6a638c9 (patch) | |
tree | 8c428d8695b6ccdc7ccef79a1e34f53a2ca17772 /src/decoder/DsfDecoderPlugin.cxx | |
parent | ae88ba986e0c50d922845f65d9b432404f41c532 (diff) | |
download | mpd-73f45d87d5d3fd078bdf9acd3077e4c8b6a638c9.tar.gz mpd-73f45d87d5d3fd078bdf9acd3077e4c8b6a638c9.tar.xz mpd-73f45d87d5d3fd078bdf9acd3077e4c8b6a638c9.zip |
decoder/{dsf,dsdiff}: eliminate useless assignments
Diffstat (limited to '')
-rw-r--r-- | src/decoder/DsfDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/DsfDecoderPlugin.cxx b/src/decoder/DsfDecoderPlugin.cxx index 0507f5047..5ef94e647 100644 --- a/src/decoder/DsfDecoderPlugin.cxx +++ b/src/decoder/DsfDecoderPlugin.cxx @@ -240,10 +240,10 @@ dsf_decode_chunk(Decoder &decoder, InputStream &is, while (chunk_size > 0) { /* see how much aligned data from the remaining chunk fits into the local buffer */ - unsigned now_frames = buffer_frames; size_t now_size = buffer_size; if (chunk_size < (uint64_t)now_size) { - now_frames = (unsigned)chunk_size / frame_size; + unsigned now_frames = + (unsigned)chunk_size / frame_size; now_size = now_frames * frame_size; } |