]> git.alsa-project.org Git - alsa-plugins.git/commit
pcm_a52: Don't move bytes within the outbuf
authorAlexander Motzkau <a.motzkau@web.de>
Wed, 18 Mar 2020 21:38:18 +0000 (22:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:01:20 +0000 (18:01 +0200)
commit5c9419e3c80f830d972bcc4b05785686e65bd280
treee0f92d6c4ab487eebcfd35b25e2b83adcd0cf0c4
parenta5717e37fda2de350ffd70541a0f309767c344f3
pcm_a52: Don't move bytes within the outbuf

The output buffer will never be appended, but a new a52 frame will always
be written in its entirety to outbuf. Therefore we don't need to move
bytes that were not yet sent to the slave to the beginning of the output
buffer.

Also don't overwrite the output buffer when there are still frames
to be sent.

BugLink: https://github.com/alsa-project/alsa-plugins/pull/8
Signed-off-by: Alexander Motzkau <a.motzkau@web.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
a52/pcm_a52.c