Commit f5172e6b authored by Max Kellermann's avatar Max Kellermann

decoder/wavpack: use int16_t instead of uint16_t

Technically, these samples are signed. There was no practical difference, only the declaration was formally wrong.
parent 544bcbe9
......@@ -104,7 +104,7 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
break;
}
case 2: {
uint16_t *dst = (uint16_t *)buffer;
auto *dst = (int16_t *)buffer;
static_assert(sizeof(*dst) <= sizeof(*src), "Wrong size");
/* pass through and align 16-bit samples */
......
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