diff options
author | Yiyuan GUO <yguoaz@gmail.com> | 2021-05-15 13:54:35 +0800 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-14 17:55:00 +0100 |
commit | 2201c91fbf672447aa2063bd752d821466b8f11b (patch) | |
tree | e907f5b89a97ad8f87cb3d8bfd5287ff3504ddb2 /libavcodec/mdct15.c | |
parent | 910a24eb330694a24da20efd03706a7a6052bb77 (diff) | |
download | ffmpeg-2201c91fbf672447aa2063bd752d821466b8f11b.tar.gz |
avfilter/vf_palettegen: add protection against potential divide by zero
In libavfilter/vf_palettegen.c, the function get_avg_color requires
that box->len greater than zero to avoid dividing by zero. However,
the call sequence filter_frame -> get_palette_frame -> get_avg_color
may not satisfy this precondition. Fixes #9222.
Signed-off-by: Yiyuan GUO <yguoaz@gmail.com>
Diffstat (limited to 'libavcodec/mdct15.c')
0 files changed, 0 insertions, 0 deletions