Files
FFmpeg/libavfilter
Cosmin Stejerean de0ec0d3af avfilter/bwdif: account for chroma sub-sampling in min size calculation
The current logic for detecting frames that are too small for the
algorithm does not account for chroma sub-sampling, and so a sample
where the luma plane is large enough, but the chroma planes are not
will not be rejected. In that event, a heap overflow will occur.

This change adjusts the logic to consider the chroma planes and makes
the change to all three bwdif implementations.

Fixes #10688

Signed-off-by: Cosmin Stejerean <cosmin@cosmin.at>
Reviewed-by: Thomas Mundt <tmundt75@gmail.com>
Signed-off-by: Philip Langdale <philipl@overt.org>
(cherry picked from commit 737ede405b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2025-05-16 18:59:56 +02:00
..
2017-05-12 10:48:13 +02:00
2018-11-18 21:21:18 +01:00
2016-12-01 09:53:38 +01:00
2019-05-14 15:17:14 +02:00
2017-11-26 14:05:25 +01:00
2025-05-16 03:03:47 +02:00
2018-10-19 17:43:29 +02:00
2018-03-31 23:26:30 +01:00
2018-11-15 14:44:24 +01:00
2018-06-21 00:31:42 +01:00
2018-06-21 00:31:42 +01:00
2018-05-05 21:50:22 +02:00
2017-06-26 19:43:41 +02:00
2017-04-23 14:40:30 +07:00
2017-01-12 10:22:52 +01:00
2016-01-28 19:49:48 -08:00
2017-07-08 11:49:54 +02:00
2019-07-02 19:02:54 +02:00
2016-01-31 15:44:11 -08:00
2016-01-28 19:49:48 -08:00
2016-01-31 15:44:11 -08:00
2019-07-14 17:00:58 +02:00
2018-06-21 00:31:42 +01:00
2019-05-11 20:16:45 +02:00
2016-02-27 21:35:20 +01:00
2019-06-06 13:59:43 +08:00
2017-08-05 21:05:22 +02:00
2019-04-20 00:20:07 +02:00
2018-08-16 00:07:59 +02:00
2019-04-20 14:20:07 +02:00
2017-04-24 20:37:30 +02:00
2024-07-22 10:47:17 +02:00
2019-01-12 19:49:15 +01:00
2019-05-24 18:37:41 +02:00
2018-11-02 09:32:52 +01:00
2018-04-13 08:41:51 +02:00