aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/alsa.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-14 19:46:42 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-04-18 14:52:26 +0200
commit7f35c999f61bf2b938909660bbf148cbed34474c (patch)
tree0c2038ab6ffbd0be15547a75cc6e708e039b817a /libavdevice/alsa.h
parentda460fb95cbaf9d7fe47a92f451629c227474b48 (diff)
downloadffmpeg-7f35c999f61bf2b938909660bbf148cbed34474c.tar.gz
avcodec/ac3enc: Avoid copying samples
Only the last 256 samples of each frame are used; the encoder currently uses a buffer for 1536 + 256 samples whose first 256 samples contain are the last 256 samples from the last frame and the next 1536 are the samples of the current frame. Yet since 238b2d4155d9779d770fccb3594076bb32742c82 all the DSP functions only need 256 contiguous samples and this can be achieved by only retaining the last 256 samples of each frame. Doing so saves 6KiB per channel. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice/alsa.h')
0 files changed, 0 insertions, 0 deletions