diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-18 18:52:25 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-21 01:04:28 +0100 |
commit | 1eafbc27e2d3824b2fd3123bd78c25bc60fed8ba (patch) | |
tree | df0e96040933a1f45920be05edab00e80386a12f /doc/examples/transcode_aac.c | |
parent | 1d66a122df9fd5d8400b05c74462d0082990fc01 (diff) | |
download | ffmpeg-1eafbc27e2d3824b2fd3123bd78c25bc60fed8ba.tar.gz |
avcodec/vvc/vvc_ps: Check before access
max_bin_idx can be at most LMCS_MAX_BIN_SIZE - 1 here,
so pivot[LCMS_MAX_BIN_SIZE + 1] may be accessed,
but pivot has only LCMS_MAX_BIN_SIZE + 1 elements
(unless the values of pivot were so that it is always
assured that pivot[LCMS_MAX_BIN_SIZE] is always < sample
(which it is iff it is always < 2^bit_depth - 1)).
So reorder the checks.
Reviewed-by: Nuo Mi <nuomi2021@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'doc/examples/transcode_aac.c')
0 files changed, 0 insertions, 0 deletions