aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/aarch64
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-25 02:16:27 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-02-25 13:42:47 +0100
commitab2173c0a530622a0e8683cbd66f8e5aff7a2916 (patch)
tree274f252c3a82775893b4b67548434d01108c1462 /libswscale/aarch64
parentb4b8b9ad5cf8506f4c5abdc5c4cd5bb4f7285cdd (diff)
downloadffmpeg-ab2173c0a530622a0e8683cbd66f8e5aff7a2916.tar.gz
avcodec/cbs_h2645: Avoid function pointer casts, fix UB
The SEI message read/write functions are called via function pointers where the SEI message-specific context is passed as void*. But the actual function definitions use a pointer to their proper context in place of void*, making the calls undefined behaviour. Clang UBSan 17 warns about this. This commit fixes this by adding wrapper functions (created via macros) that have the right type that call the actual functions. This reduced the number of failing FATE tests with UBSan from 164 to 85 here. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libswscale/aarch64')
0 files changed, 0 insertions, 0 deletions