]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: rate: fix the crash for the partial period copy
authorJaroslav Kysela <perex@perex.cz>
Mon, 17 Oct 2022 11:52:51 +0000 (13:52 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 17 Oct 2022 11:58:41 +0000 (13:58 +0200)
commit9253f08fb784ad6a8b67b63e64732cb2f5694b6a
tree725bae6553923f4f8e9927dbd86192b76b5f9b5c
parentdac9059524f6fb6eda32565b19ce145df125e17e
pcm: rate: fix the crash for the partial period copy

The size argument in snd_pcm_rate_commit_area can be smaller
than cont in drain. Return the original code. It should
not make things worse. Perhaps, we can fill the rest of
the period with silence in this case.

Fixes: https://github.com/alsa-project/alsa-lib/issues/274
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/pcm/pcm_rate.c