Commit 6d41f362 authored by Max Kellermann's avatar Max Kellermann

decoder/dsf: use memcpy()

parent 57cbcdf2
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
#include "tag/TagHandler.hxx" #include "tag/TagHandler.hxx"
#include "Log.hxx" #include "Log.hxx"
#include <string.h>
struct DsfMetaData { struct DsfMetaData {
unsigned sample_rate, channels; unsigned sample_rate, channels;
bool bitreverse; bool bitreverse;
...@@ -208,10 +210,7 @@ dsf_to_pcm_order(uint8_t *dest, size_t nrbytes) ...@@ -208,10 +210,7 @@ dsf_to_pcm_order(uint8_t *dest, size_t nrbytes)
j++; j++;
} }
for (unsigned i = 0; i < (unsigned)nrbytes; i++) { memcpy(dest, scratch, nrbytes);
*dest = scratch[i];
dest++;
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment