Files
FFmpeg/libavformat
Jun Zhao 6c878f8b82 lavf/movenc: fix missing padding for AV1 extradata
The extradata allocated in mov_write_single_packet() for AV1 was missing
the required AV_INPUT_BUFFER_PADDING_SIZE padding bytes. This could lead
to out-of-bounds reads when the extradata is parsed by bitstream readers.

Replace av_memdup() with av_malloc() + memset() + memcpy() to ensure
proper padding is present and zeroed.

Reproduced with:
./ffmpeg -y -f lavfi -i "testsrc=duration=1:size=320x240:rate=30" -c:v libaom-av1 -cpu-used 8 -crf 50 test-av1.mp4

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2026-01-14 23:56:39 +00:00
..
2025-08-03 13:48:47 +02:00
2024-08-28 16:27:54 +02:00
2025-09-08 20:59:31 +00:00
2025-04-13 22:49:21 +02:00
2024-09-24 15:37:15 +02:00
2025-04-13 22:49:21 +02:00
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
2024-03-26 06:36:43 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-06-19 10:12:50 -03:00
2022-03-16 14:05:26 +02:00
2025-08-03 13:48:47 +02:00
2024-03-26 06:36:43 +01:00
2025-08-03 13:48:47 +02:00
2025-06-23 17:19:18 +10:00
2025-08-03 13:48:47 +02:00
2024-06-04 11:46:27 +02:00
2026-01-06 04:05:47 +00:00
2024-07-21 16:41:23 +02:00
2025-09-21 17:42:19 +08:00
2023-05-31 09:03:58 -07:00
2025-08-03 13:48:47 +02:00
2022-02-24 12:56:49 +01:00
2025-08-03 13:48:47 +02:00
2024-04-17 18:31:06 +05:30
2024-05-01 02:57:12 +02:00
2025-08-03 13:48:47 +02:00
2024-04-06 12:59:56 +02:00
2025-08-04 03:59:42 +00:00
2025-08-03 13:48:47 +02:00
2025-09-20 00:31:10 +02:00
2024-03-31 00:08:43 +01:00
2025-11-09 13:44:18 +01:00
2024-03-31 00:08:43 +01:00
2025-10-25 19:22:48 +00:00
2025-03-28 15:23:28 +01:00
2024-03-31 00:08:43 +01:00
2025-08-03 13:48:47 +02:00
2024-11-03 10:53:15 +11:00
2025-06-23 17:19:18 +10:00
2024-03-15 12:51:15 +01:00
2024-03-15 12:51:15 +01:00
2022-03-26 00:42:00 +02:00
2025-07-07 01:45:10 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-03-31 00:08:43 +01:00
2025-09-19 09:59:26 +02:00
2025-08-03 13:48:47 +02:00
2024-07-21 17:02:11 +02:00
2025-10-30 17:22:12 -07:00
2025-12-07 19:36:03 +00:00
2024-03-26 06:36:43 +01:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2024-03-26 06:36:43 +01:00
2024-03-31 00:08:43 +01:00