diff options
author | James Almer <jamrial@gmail.com> | 2019-12-11 18:54:38 -0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-01-06 15:03:15 +0100 |
commit | 6850c5e4cdcae5ee049f35ef244f1c3a83c30621 (patch) | |
tree | dea5f33598039eb36a2122c405bd0972af3e3574 /tools/qt-faststart.c | |
parent | 5ce0c254ddf3608fcab0733d06e16cc0d4c28a55 (diff) | |
download | ffmpeg-6850c5e4cdcae5ee049f35ef244f1c3a83c30621.tar.gz |
avcodec/cbs_av1: fix array size for ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128
Taking into account the code
fb(2, ar_coeff_lag);
num_pos_luma = 2 * current->ar_coeff_lag * (current->ar_coeff_lag + 1);
if (current->num_y_points)
num_pos_chroma = num_pos_luma + 1;
else
num_pos_chroma = num_pos_luma;
Max value for ar_coeff_lag is 3 (two bits), for num_pos_luma 24, and for
num_pos_chroma 25.
Both ar_coeffs_cb_plus_128 and ar_coeffs_cr_plus_128 may have up to
num_pos_chroma values.
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit a23dd33606d5a711fd632383d81a1d6c60082e0f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools/qt-faststart.c')
0 files changed, 0 insertions, 0 deletions