[FFmpeg-devel] [RFC PATCH 1/3] aacdec: always skip the first 2048 samples if there's no side data

Lynne dev at lynne.ee
Tue Sep 12 09:10:17 EEST 2023


For some reason, this was never set, which meant all **raw** AAC in ADTS
streams, except faac, had extra samples at the start.

Despite this being a standard MDCT-based codec with a frame size of 1024,
hence a delay of 1024 samples at the start, all major encoders, excluding
faac and FFmpeg, use 2048 samples of padding.

The FFmpeg encoder will be modified to also output 2048 samples of padding
at the start, to make it in line with other encoders.

Yes, this leaves FATE pretty sad. Will fix it with the real version of the patch.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-aacdec-always-skip-the-first-2048-samples-if-there-s.patch
Type: text/x-diff
Size: 2219 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20230912/46475dfc/attachment.patch>


More information about the ffmpeg-devel mailing list