decoder/{dsf,dsdiff}: eliminate useless assignments

This commit is contained in:
Max Kellermann
2013-11-23 18:30:06 +01:00
parent ae88ba986e
commit 73f45d87d5
2 changed files with 4 additions and 5 deletions

View File

@@ -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;
}