1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +02:00
FFmpeg/libavutil
Andreas Rheinhardt f705b8b5b4 avutil/opt: Use correct function pointer type
av_get_sample/pix_fmt() return their respective enums
and are therefore not of the type int (*)(const char*),
yet they are called as-if they were of this type.
This works in practice, but is actually undefined behaviour.

With Clang 17 UBSan these violations are flagged, affecting lots
of tests. The number of failing tests went down from 3363 to 164
here with this patch.

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-02-25 02:19:18 +01:00
..
2023-03-26 01:46:39 +01:00
2021-04-27 10:43:13 -03:00
2023-07-12 15:35:37 +02:00
2022-09-13 16:50:43 -03:00
2023-09-07 00:42:10 +02:00
2022-11-06 08:26:50 +01:00
2014-07-12 22:33:27 +02:00
2023-11-18 19:55:42 +01:00
2023-09-02 02:49:06 +02:00
2023-09-02 02:49:06 +02:00
2023-08-08 09:46:11 +02:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2015-10-11 18:03:10 -04:00
2022-10-17 09:56:47 +02:00
2016-01-13 20:00:19 -05:00
2021-07-22 14:34:31 +02:00
2022-02-24 12:56:49 +01:00
2021-07-21 16:35:27 +02:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2023-09-07 00:42:10 +02:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2024-01-16 01:34:57 +01:00
2021-07-22 14:34:31 +02:00
2021-07-22 14:34:31 +02:00
2023-07-22 21:35:15 +03:00
2023-09-07 00:42:10 +02:00
2021-07-22 14:34:31 +02:00
2022-10-17 09:51:47 +02:00
2023-09-07 00:42:10 +02:00
2024-02-22 00:29:59 -03:00
2023-09-01 23:59:10 +02:00
2023-08-08 09:46:11 +02:00
2023-08-08 09:46:11 +02:00