mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
mix: Fix mixing of S24 samples stored as S32RE
pa_mix_s24_32re_c() should advance m->ptr by sizeof(int32_t) http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-July/020998.html Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
parent
c57f8422f3
commit
1499271f46
2 changed files with 2 additions and 2 deletions
|
|
@ -445,7 +445,7 @@ static void pa_mix_s24_32re_c(pa_mix_info streams[], unsigned nstreams, unsigned
|
|||
v = (v * cv) >> 16;
|
||||
sum += v;
|
||||
}
|
||||
m->ptr = (uint8_t*) m->ptr + 3;
|
||||
m->ptr = (uint8_t*) m->ptr + sizeof(int32_t);
|
||||
}
|
||||
|
||||
sum = PA_CLAMP_UNLIKELY(sum, -0x80000000LL, 0x7FFFFFFFLL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue