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