mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sample-util: Fix off-by-one in error check
Patch by jk.illwinter on http://www.pulseaudio.org/ticket/951
This commit is contained in:
parent
2568542b18
commit
9083a8f667
1 changed files with 2 additions and 2 deletions
|
|
@ -748,8 +748,8 @@ void pa_volume_memchunk(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (spec->format < 0 || spec->format > PA_SAMPLE_MAX) {
|
if (spec->format < 0 || spec->format >= PA_SAMPLE_MAX) {
|
||||||
pa_log_warn(" Unable to change volume of format %s.", pa_sample_format_to_string(spec->format));
|
pa_log_warn("Unable to change volume of format");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue