1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-28 12:32:17 +02:00
FFmpeg/libavcodec
James Almer 6850c5e4cd 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>
2020-01-06 15:03:15 +01:00
..
2018-10-15 01:19:45 +02:00
2018-10-12 09:48:07 -07:00
2018-08-08 00:13:13 +05:30
2019-06-27 17:50:47 +02:00
2018-09-23 14:42:34 +01:00
2018-09-23 14:42:34 +01:00
2018-07-18 13:59:25 +02:00
2018-04-19 22:59:40 +02:00
2018-02-24 17:06:31 +01:00
2018-02-24 17:06:31 +01:00
2020-01-06 11:30:42 +01:00
2018-04-25 23:09:47 +02:00
2019-06-27 17:50:47 +02:00
2020-01-06 15:03:15 +01:00
2018-09-09 11:35:14 +02:00
2018-09-23 15:25:50 +02:00
2019-01-21 07:53:25 +01:00
2018-05-25 20:09:22 +02:00
2017-12-10 14:43:01 +01:00
2018-09-09 22:58:26 +02:00
2018-02-24 17:06:31 +01:00
2017-12-11 00:42:26 -03:00
2019-06-29 20:43:54 +02:00
2019-03-14 00:24:44 +01:00
2020-01-06 11:30:42 +01:00
2020-01-06 11:30:44 +01:00
2018-01-03 13:00:06 -05:00
2018-10-03 20:48:49 -03:00
2020-01-06 11:30:43 +01:00
2018-03-29 00:05:52 -03:00
2018-08-22 11:36:19 +02:00
2018-09-14 21:36:21 +02:00
2018-05-05 21:35:31 +02:00
2020-01-06 11:30:42 +01:00
2018-03-07 22:26:53 +01:00
2018-02-24 04:50:55 +01:00
2019-07-08 11:44:52 +02:00
2019-01-21 07:53:26 +01:00
2020-01-06 11:30:44 +01:00
2018-09-08 21:21:50 +02:00
2020-01-06 11:30:43 +01:00
2019-01-21 07:53:26 +01:00
2018-02-21 23:38:30 +00:00
2018-04-25 22:07:20 +02:00
2020-01-06 11:30:42 +01:00
2020-01-06 11:30:43 +01:00
2020-01-06 11:30:42 +01:00
2020-01-06 11:30:42 +01:00
2017-12-19 23:21:59 +00:00
2020-01-06 11:30:42 +01:00
2018-09-30 22:23:02 +02:00
2017-12-19 23:21:59 +00:00
2019-03-14 00:24:44 +01:00