mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
smoother-test: Fix array overflow.
This commit is contained in:
parent
19c058dd08
commit
2567bc10ec
1 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,8 @@ START_TEST (smoother_test) {
|
||||||
pa_log_debug("%i\t\t%i", msec[u], msec[u+1]);
|
pa_log_debug("%i\t\t%i", msec[u], msec[u+1]);
|
||||||
u += 2;
|
u += 2;
|
||||||
|
|
||||||
pa_smoother_resume(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, TRUE);
|
if (u < PA_ELEMENTSOF(msec))
|
||||||
|
pa_smoother_resume(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
pa_log_debug("%llu\t%llu", (unsigned long long) (x/PA_USEC_PER_MSEC), (unsigned long long) (pa_smoother_get(s, x)/PA_USEC_PER_MSEC));
|
pa_log_debug("%llu\t%llu", (unsigned long long) (x/PA_USEC_PER_MSEC), (unsigned long long) (pa_smoother_get(s, x)/PA_USEC_PER_MSEC));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue