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.
This commit is contained in:
Max Kellermann 2016-12-09 22:21:31 +01:00
parent 544bcbe903
commit f5172e6b84

View File

@ -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 */