Files
ffmpeg/libavcodec
Bogdan Lisman ac659da58e avcodec/snowenc: fix SIGFPE in get_dc() when a block lies outside the plane
get_dc() divides the accumulated, OBMC-weighted DC by aa, the sum of the
squared OBMC weights taken over the in-plane pixels.  When an OBMC block
falls entirely outside the plane - e.g. a tiny chroma plane after mcdeint
splits a frame into fields - no pixel contributes, aa stays 0 and the
ROUNDED_DIV() divides by zero (SIGFPE).  ab is 0 in exactly the same case,
so the result degenerates to 0; return it directly.

Reproducible with the GPL mcdeint filter in slow/extra_slow mode, e.g.

    ffmpeg -f lavfi -i testsrc=s=128x2 -vf mcdeint=mode=slow -f null -

Add a self-contained lavfi-based FATE regression test for the slow mode,
which previously crashed and is therefore not covered by the existing
sample-based fast/medium tests.

Fixes trac ticket #7779.

Signed-off-by: Bogdan Lisman <bogdan@pydevsolutions.com>
(cherry picked from commit a62d996927)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2026-06-18 20:31:07 +02:00
..
2025-12-07 15:54:59 +00:00
2025-12-07 15:54:59 +00:00
2026-05-04 15:57:08 +02:00
2024-09-17 21:12:31 +02:00
2025-12-07 15:54:59 +00:00
2024-09-06 13:59:28 +02:00
2026-05-04 15:57:33 +02:00
2025-12-07 15:54:59 +00:00
2024-09-24 15:37:17 +02:00
2025-12-07 15:54:59 +00:00
2025-09-08 02:13:25 +02:00
2025-12-07 15:54:59 +00:00
2025-09-08 02:13:19 +02:00
2025-11-19 12:45:53 +01:00
2025-09-08 02:13:28 +02:00
2025-06-11 17:29:47 +02:00
2025-12-07 15:54:59 +00:00
2025-01-23 01:20:11 +01:00
2025-09-08 02:13:17 +02:00
2025-09-08 02:13:18 +02:00
2025-12-07 15:54:59 +00:00
2024-09-24 15:37:19 +02:00
2026-05-04 15:57:12 +02:00
2025-09-08 02:13:11 +02:00
2026-05-04 15:57:18 +02:00
2026-06-18 20:31:03 +02:00
2025-09-08 02:13:22 +02:00
2025-12-07 15:54:59 +00:00
2026-05-04 15:57:28 +02:00
2025-11-19 12:45:55 +01:00
2025-09-08 02:13:32 +02:00
2025-09-08 02:13:27 +02:00
2025-12-07 15:54:59 +00:00
2025-06-11 17:29:49 +02:00
2024-09-24 15:37:19 +02:00
2026-05-04 15:57:14 +02:00
2025-01-03 18:28:44 +01:00
2024-09-24 15:37:20 +02:00
2026-05-04 15:57:21 +02:00