Michael Niedermayer
5b76394eda
avfilter: use ff_slice_pos() for per-slice boundary computation
...
This is a behavior preserving change for all non-overflowing cases.
Slice-based filters computed per-slice boundaries as (dim * jobnr) / nb_jobs
in int, which overflows for large dimensions with many slice threads,
yielding wrong slice bounds and out-of-array accesses. ff_slice_pos()
performs the multiplication in 64bit.
Backported to 4.4: applied the ff_slice_pos() conversion to the
dimension-based slices of the filters present in 4.4 (filters added after
the 4.4 branch are skipped), and added the required filters.h includes.
ff_slice_pos() itself is already present in 4.4. Channel-count based
slices (bounded, cannot overflow) are left unchanged.
(cherry picked from commit f7368f97b9 )
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2026-06-21 18:51:19 +02:00
..
2025-12-07 15:55:56 +00:00
2020-11-03 19:58:13 +01:00
2021-03-18 09:30:09 +08:00
2021-02-17 15:51:28 -03:00
2022-01-11 15:15:53 +01:00
2020-12-02 13:54:53 +01:00
2021-01-30 23:53:38 +01:00
2021-02-11 11:39:55 +01:00
2020-11-24 11:32:19 +01:00
2024-07-21 21:09:25 +02:00
2020-11-27 22:38:17 +01:00
2021-02-10 19:21:01 +01:00
2021-02-21 13:42:40 +01:00
2021-01-01 15:25:48 +01:00
2020-10-18 22:56:23 +02:00
2020-12-13 11:16:31 +01:00
2020-11-30 21:42:09 +01:00
2021-03-01 06:10:44 +01:00
2024-04-03 02:05:56 +02:00
2021-02-12 23:01:52 +01:00
2020-12-01 18:42:28 +01:00
2020-11-17 13:49:38 +01:00
2021-02-10 14:15:42 +01:00
2026-06-21 18:51:19 +02:00
2021-01-23 19:54:14 +01:00
2020-11-28 22:07:18 +01:00
2021-01-08 05:06:12 +01:00
2021-01-08 05:06:12 +01:00
2020-10-20 13:51:38 +02:00
2026-06-21 18:51:19 +02:00
2021-09-08 21:31:50 +02:00
2021-03-10 23:52:07 +01:00
2020-12-10 23:43:49 +01:00
2021-04-02 21:39:27 +02:00
2026-06-13 15:25:42 +02:00
2026-05-05 18:55:07 +02:00
2024-07-21 20:03:21 +02:00
2025-03-16 22:12:18 +01:00
2020-10-12 12:21:35 +02:00
2020-11-15 12:59:40 +01:00
2026-06-21 17:59:33 +02:00
2024-04-03 02:05:55 +02:00
2022-01-11 15:15:53 +01:00
2020-12-25 14:12:52 +01:00
2022-01-11 15:15:53 +01:00
2021-03-06 12:42:16 +01:00
2022-01-11 15:15:53 +01:00
2021-04-02 21:38:21 +02:00
2021-01-22 16:21:22 +01:00
2020-10-20 20:30:45 +02:00
2025-11-30 21:38:20 +01:00
2020-11-28 20:57:41 +01:00
2022-01-11 22:37:58 +01:00
2021-03-07 15:18:35 +01:00
2021-01-17 12:06:01 +01:00
2021-01-17 12:06:01 +01:00
2026-06-13 00:07:55 +02:00
2021-03-07 15:19:10 +01:00
2021-03-07 15:19:10 +01:00
2025-04-04 03:36:39 +02:00
2026-05-05 18:55:05 +02:00
2021-02-18 09:59:37 +08:00
2021-02-18 09:59:37 +08:00
2021-02-18 09:59:37 +08:00
2021-02-07 21:45:26 +01:00
2021-01-29 15:20:53 +01:00
2021-02-02 23:53:30 +01:00
2021-02-02 23:53:30 +01:00
2021-07-18 22:32:22 +02:00
2020-12-07 21:09:08 +01:00
2026-06-14 01:15:06 +02:00
2026-06-14 17:50:53 +02:00
2021-03-10 20:26:36 -03:00
2021-03-10 20:26:36 -03:00
2021-02-16 21:12:11 +01:00
2020-11-25 23:06:34 +01:00
2021-02-03 15:51:40 +01:00
2021-02-25 22:03:32 +01:00
2021-02-25 22:03:32 +01:00
2021-03-06 12:41:30 +01:00
2025-12-07 15:55:56 +00:00
2021-01-01 14:24:20 +01:00
2021-01-23 16:10:16 +00:00
2021-01-23 16:09:16 +00:00
2026-05-05 18:54:56 +02:00
2024-07-22 14:23:27 +02:00
2025-12-07 15:55:56 +00:00
2024-06-15 23:32:42 +02:00
2020-11-20 15:25:26 +01:00
2020-11-07 10:09:59 +08:00
2021-03-20 01:01:12 +01:00
2025-03-16 22:12:17 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-01-17 12:22:28 +01:00
2020-12-19 20:46:00 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-06-18 20:53:56 +02:00
2021-04-02 21:41:26 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-01-01 14:14:57 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-01-16 21:35:44 +01:00
2020-12-09 12:52:09 +05:30
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-01-21 13:37:47 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-02-06 15:26:39 +01:00
2021-01-21 13:37:47 +01:00
2026-06-21 18:51:19 +02:00
2021-01-23 16:10:16 +00:00
2021-02-18 09:59:37 +08:00
2024-07-22 10:45:24 +02:00
2026-06-21 18:51:19 +02:00
2021-01-16 21:35:44 +01:00
2021-02-18 09:59:37 +08:00
2021-02-05 17:29:59 +05:30
2026-06-13 18:38:10 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-02-07 21:45:26 +01:00
2026-06-21 18:51:19 +02:00
2021-09-08 21:31:50 +02:00
2021-01-16 21:35:44 +01:00
2021-01-21 13:37:47 +01:00
2020-12-18 23:11:51 +01:00
2026-05-05 18:54:58 +02:00
2021-02-09 12:29:04 +01:00
2020-12-27 11:01:41 +01:00
2022-09-25 13:51:36 +02:00
2021-01-01 14:25:28 +01:00
2021-01-01 14:25:28 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2024-04-03 02:05:55 +02:00
2026-06-21 18:51:19 +02:00
2021-03-25 04:36:39 +01:00
2026-06-21 18:51:19 +02:00
2022-01-11 15:15:53 +01:00
2021-01-16 21:35:44 +01:00
2026-05-05 19:27:35 +02:00
2026-06-21 18:51:19 +02:00
2021-01-26 20:08:05 +01:00
2026-06-21 18:51:19 +02:00
2026-05-05 18:54:54 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-03-17 15:19:36 -03:00
2026-06-21 18:51:19 +02:00
2021-09-08 21:31:50 +02:00
2024-04-03 02:05:58 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-05-05 18:54:54 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2020-10-27 19:45:51 +01:00
2021-03-19 23:00:04 +01:00
2021-04-11 10:22:57 +02:00
2025-12-07 15:55:56 +00:00
2026-06-21 18:51:19 +02:00
2021-01-01 14:14:57 +01:00
2021-04-02 21:38:30 +02:00
2021-01-16 20:47:52 +01:00
2026-06-21 18:51:19 +02:00
2021-01-01 14:25:18 +01:00
2021-02-08 11:06:29 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-01-08 05:05:10 +01:00
2021-01-21 14:52:40 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2021-01-17 12:06:01 +01:00
2024-06-15 23:33:00 +02:00
2020-11-04 18:10:19 +01:00
2020-11-05 00:47:14 +01:00
2020-11-03 19:58:13 +01:00
2020-11-04 18:10:19 +01:00
2021-10-07 18:18:04 +02:00
2021-01-23 16:10:16 +00:00
2026-05-05 18:55:06 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2022-09-25 13:51:54 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2024-04-03 02:06:08 +02:00
2021-01-01 14:25:02 +01:00
2021-01-01 14:25:02 +01:00
2021-02-18 09:59:37 +08:00
2026-06-21 18:51:19 +02:00
2026-05-05 18:54:55 +02:00
2026-06-21 18:51:19 +02:00
2022-04-06 20:27:35 +02:00
2026-06-21 18:51:19 +02:00
2024-04-03 02:05:57 +02:00
2021-01-16 21:35:44 +01:00
2026-06-21 18:51:19 +02:00
2024-06-15 23:32:42 +02:00
2021-02-08 13:01:28 +01:00
2021-02-06 11:40:59 +01:00
2021-01-01 12:43:42 +01:00
2025-03-16 22:11:57 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2023-03-16 17:13:44 -03:00
2021-03-17 15:19:36 -03:00
2026-06-21 18:51:19 +02:00
2021-02-15 00:12:38 +01:00
2026-06-21 18:51:19 +02:00
2024-04-03 02:05:57 +02:00
2026-06-21 18:51:19 +02:00
2021-06-18 20:53:56 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2025-03-16 22:11:56 +01:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-06-21 18:51:19 +02:00
2026-05-05 18:54:56 +02:00
2022-09-25 13:51:36 +02:00
2022-09-25 13:51:36 +02:00
2021-02-16 22:26:56 +01:00
2021-03-01 06:10:44 +01:00
2022-09-25 13:51:36 +02:00
2021-01-17 15:56:31 +01:00