Files
Michael Niedermayer 19feb712f5 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 5.1: applied the ff_slice_pos() conversion to the filters
present in 5.1 (filters added after the 5.1 branch are skipped), and added
the required filters.h includes. ff_slice_pos() itself is already present
in 5.1. Channel-count based slices (bounded, cannot overflow) are left as
in 6.1.

(cherry picked from commit f7368f97b9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-06-21 12:05:56 +02:00
..
2025-12-03 20:26:49 +01:00
2022-07-07 17:52:32 +02:00
2025-12-03 20:26:49 +01:00
2022-07-10 17:20:15 +02:00
2025-12-03 20:26:49 +01:00
2025-12-03 20:26:49 +01:00
2022-03-16 14:05:26 +02:00
2022-07-13 00:27:37 +02:00
2025-12-03 20:26:49 +01:00