diff options
author | Cosmin Stejerean <cosmin@cosmin.at> | 2023-12-06 18:39:32 +0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2023-12-07 10:00:12 +0800 |
commit | 737ede405b11a37fdd61d19cf25df296a0cb0b75 (patch) | |
tree | f041f555ae8a6ad8c1e985b9748f9a6754708ed6 /libavformat/fifo.c | |
parent | 8bdb6630627a5c304e61f5b81be3af6da77c4a67 (diff) | |
download | ffmpeg-737ede405b11a37fdd61d19cf25df296a0cb0b75.tar.gz |
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>
Diffstat (limited to 'libavformat/fifo.c')
0 files changed, 0 insertions, 0 deletions