mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
Allows the compiler to optimize the the aliasing checks away and saves 5376B here (GCC 15, -O3). Also, avoid converting the stride to uint16_t for >8bpp: stride /= sizeof(pixel) will use an unsigned division (i.e. a logical right shift)*, which is not what is intended here. *: If size_t is the corresponding unsigned type to ptrdiff_t Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>