1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00
Files
ffmpeg/libswscale
yongdev c9e36046a3 libswscale: use unaligned read/write macros in planarCopyWrapper
When performing unscaled planar copies or format conversions on 16-bit
buffers in planarCopyWrapper, srcPtr2 and dstPtr2 are not guaranteed to
be 8-byte aligned (e.g. subsampled chroma planes with non-multiple-of-8
widths/strides or odd slice offsets).

AV_RN64A / AV_WN64A and AV_RN32A / AV_WN32A cast pointers to av_alias64
or av_alias32 which have __attribute__((aligned(8))) or aligned(4).
Dereferencing unaligned pointers with aligned attribute triggers Undefined
Behavior traps (SIGILL / UD1 instruction with Clang -fsanitize=alignment).
Replace them with AV_RN64 / AV_WN64 and AV_RN32 / AV_WN32.

Signed-off-by: yongdev <yongdev@google.com>
2026-08-31 13:47:25 +00:00
..
2026-08-17 22:21:44 +00:00
2026-08-09 21:03:33 +02:00
2026-07-13 18:57:37 +09:00
2026-07-13 18:57:37 +09:00