Files
Romain Beauxis 23fccd657c avformat/mp3enc: keep trailing padding spanning several packets
The trailing padding is read from the AV_PKT_DATA_SKIP_SAMPLES side data of
every packet, overwriting the previous value, so only the last packet was
ever accounted for. A single packet holds at most one frame, which caps the
padding that can be written at 1152 + 528 + 1 samples.

LAME regularly reports more than that: gapless/gapless.mp3 carries 1984 and
comes out of a stream copy with 1681, decoding to 303 samples more than the
file it was copied from.

Accumulate instead, and add the decoder delay once the total is known.

Fixes: https://trac.ffmpeg.org/ticket/9755
2026-08-07 21:18:03 +00:00
..
2025-05-13 19:38:08 +01:00
2025-08-04 08:01:24 +00:00
2023-07-07 12:12:52 +02:00
2025-07-05 21:10:48 +02:00
2025-07-05 21:10:48 +02:00
2026-05-23 10:38:28 +00:00
2026-07-28 17:55:33 +02:00
2025-09-16 15:42:03 -03:00
2026-03-28 11:25:38 +01:00
2026-06-23 19:13:06 +02:00