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
..
2026-07-28 04:59:01 +00:00
2026-07-10 17:45:09 +00:00
2026-07-27 17:05:20 +00:00
2026-07-18 09:59:57 -05:00
2026-07-27 17:05:20 +00:00
2026-07-27 17:05:20 +00:00
2026-07-27 17:05:20 +00:00
2026-07-29 02:03:25 +00:00
2026-07-23 13:56:54 -03:00
2026-07-22 16:08:17 +02:00
2026-08-01 19:47:08 -03:00
2026-07-05 09:02:40 +02:00
2026-07-02 18:23:18 +02:00
2026-07-06 00:16:18 +00:00
2026-07-28 18:01:18 +02:00
2026-07-26 01:05:03 +00:00
2026-07-05 09:02:40 +02:00
2026-08-01 19:44:49 -03:00
2026-07-18 09:59:57 -05:00
2026-07-18 09:59:57 -05:00
2026-07-05 04:22:13 +00:00
2026-07-04 23:53:01 +00:00
2026-07-03 19:47:10 +00:00
2026-07-27 17:05:20 +00:00
2026-07-14 15:50:24 -03:00
2026-07-02 18:23:18 +02:00
2026-07-23 13:56:54 -03:00
2026-07-23 13:56:54 -03:00
2026-07-27 17:05:20 +00:00
2026-07-28 04:59:01 +00:00
2026-07-22 20:50:14 -03:00
2026-07-05 04:15:26 +00:00
2026-08-02 16:05:57 +00:00
2026-07-23 13:56:54 -03:00
2026-08-07 21:18:03 +00:00
2026-07-28 17:55:33 +02:00
2026-07-31 06:25:59 +00:00
2026-07-10 17:45:09 +00:00
2026-07-12 00:02:40 +00:00
2026-07-02 18:23:18 +02:00
2026-07-18 15:48:34 +00:00
2026-07-18 15:48:34 +00:00
2026-07-18 15:48:34 +00:00
2026-07-13 19:35:48 +00:00
2026-07-27 17:05:20 +00:00
2026-07-28 04:59:01 +00:00
2026-07-27 17:05:20 +00:00
2026-08-03 13:51:52 +02:00
2026-07-02 13:32:21 +00:00
2026-07-31 04:01:32 +00:00
2026-07-12 00:02:40 +00:00
2026-07-12 00:02:40 +00:00
2026-07-12 00:02:40 +00:00
2026-07-19 10:20:04 +00:00
2026-07-09 02:53:53 +00:00
2026-07-25 20:12:16 -06:00
2026-07-19 03:56:15 +00:00
2026-07-29 20:37:16 +00:00
2026-07-12 00:02:40 +00:00
2026-07-13 18:29:44 +00:00
2026-07-27 17:05:20 +00:00
2026-07-12 00:02:40 +00:00
2026-07-18 09:59:57 -05:00
2026-07-18 09:59:57 -05:00
2026-07-11 02:46:34 +00:00
2026-07-04 02:39:08 +00:00