Files
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
2021-01-01 15:25:48 +01:00
2021-03-01 06:10:44 +01:00
2025-03-16 22:12:18 +01:00
2021-03-06 12:42:16 +01:00
2021-01-17 12:06:01 +01:00
2021-01-17 12:06:01 +01:00
2021-03-06 12:41:30 +01:00
2025-12-07 15:55:56 +00:00
2025-12-07 15:55:56 +00:00
2021-02-18 09:59:37 +08:00
2025-12-07 15:55:56 +00:00
2021-02-08 11:06:29 +01:00
2021-02-18 09:59:37 +08:00
2021-02-16 22:26:56 +01:00
2021-03-01 06:10:44 +01:00