Files
Jun Zhao 7386406b10 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>
(cherry picked from commit 6c878f8b82)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-06-18 05:09:43 +02:00
..
2025-08-08 03:04:42 -07:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-06-27 22:32:51 -03:00
2025-04-13 22:49:21 +02:00
2025-04-13 22:49:21 +02: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
2025-08-03 13:48:47 +02: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
2026-06-14 04:59:04 +02: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
2026-06-14 04:59:01 +02:00
2026-05-03 19:50:04 +02: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
2025-08-03 13:48:47 +02:00
2025-08-04 03:59:42 +00:00
2025-08-03 13:48:47 +02:00
2025-08-08 03:04:42 -07:00
2025-08-08 03:04:42 -07: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
2025-03-28 15:23:28 +01:00
2025-08-03 13:48:47 +02:00
2026-05-03 19:57:05 +02:00
2025-08-03 13:48:47 +02:00
2025-07-04 17:07:53 +10:00
2025-06-23 17:19:18 +10:00
2025-07-07 01:45:10 +02:00
2026-05-03 19:50:01 +02:00
2025-06-11 19:19:50 +02:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00
2025-06-26 17:35:46 +02:00
2025-08-03 13:48:47 +02:00
2026-06-14 04:59:00 +02:00
2025-11-19 00:58:21 +00:00
2025-02-07 10:13:50 -05:00
2025-08-03 13:48:47 +02:00
2025-08-03 13:48:47 +02:00