aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/h264chroma.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-13 01:32:08 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-14 21:22:45 +0100
commitcc2d2b665e48ce3d0f2a9050cb2aeb2796a8849f (patch)
tree547508bc7db46087263e494ccb2d2b18718d9d23 /tests/checkasm/h264chroma.c
parent7a089ed8e049e3bfcb22de1250b86f2106060857 (diff)
downloadffmpeg-cc2d2b665e48ce3d0f2a9050cb2aeb2796a8849f.tar.gz
avcodec/lossless_videoencdsp: Fix unaligned access
HAVE_FAST_UNALIGNED being true does not imply that one can simply read from any pointer via *(long*). It is undefined behaviour in case the pointer is not sufficiently aligned; and even if it is, it is (likely) a violation of the effective-type rules. Fix both of these by using the appropriate AV_[RW]N macros. Also, the current code used sizeof(long) as if this were the CPU's native arithmetic size, but this is not true on 64bit Windows. This has been fixed, too. This affected huffyuv FATE-tests. Tested-by: Sean McGovern <gseanmcg@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/checkasm/h264chroma.c')
0 files changed, 0 insertions, 0 deletions