]> git.alsa-project.org Git - alsa-utils.git/commit
aplay: Handle upper bound in peak calculations
authorTakashi Iwai <tiwai@suse.de>
Tue, 24 Aug 2021 08:00:26 +0000 (10:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Aug 2021 08:00:26 +0000 (10:00 +0200)
commit2efe124c31360cf0156dd0e5e7cdd52d1346a5c0
treeca9c18a0b1161c5e5dacb500f79f68cd32efb31e
parentd9b31338153591944d72e62523bad7850b407c63
aplay: Handle upper bound in peak calculations

Make sure that the calculated max_peak[] won't go beyond the sample
max resolution.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
aplay/aplay.c