1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00
Files
ffmpeg/libavfilter
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-02-14 09:59:27 +01:00
2019-10-01 14:55:43 +02:00
2021-01-01 15:25:48 +01:00
2021-03-01 06:10:44 +01:00
2019-05-14 15:17:14 +02:00
2019-12-10 16:09:14 +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
2018-11-15 14:44:24 +01:00
2018-06-21 00:31:42 +01:00
…
…
…
…
2021-03-06 12:41:30 +01:00
2020-02-14 21:49:47 +01:00
…
2025-12-07 15:55:56 +00:00
2025-12-07 15:55:56 +00:00
2019-10-23 12:37:46 +02:00
2019-09-30 16:39:39 +02:00
2020-02-04 18:28:04 +01:00
…
2018-06-21 00:31:42 +01:00
2021-02-18 09:59:37 +08:00
2019-09-26 08:10:31 +08:00
2020-03-17 22:46:36 +01:00
…
…
2025-12-07 15:55:56 +00:00
2020-03-17 22:46:36 +01: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
2020-03-17 22:46:36 +01:00
…