Changeset 7f35c99 in ffmpeg
- Timestamp:
-
Apr 18, 2024, 12:52:26 PM
(8 months ago)
- Author:
- Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- Branches:
- master
- Children:
- 69274574
- Parents:
- da460fb9
- git-author:
- Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (04/14/24 17:46:42)
- git-committer:
- Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (04/18/24 12:52:26)
- Message:
-
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>
-
(No files)
-