diff options
author | James Almer <jamrial@gmail.com> | 2019-12-11 22:39:56 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2019-12-19 01:04:10 -0300 |
commit | 8887991a3109f94b7d019a11a86e6cd900105258 (patch) | |
tree | b6c0953203e27f6c8b83283892e4f12f4fbf4639 /libavcodec/cbs_av1.h | |
parent | aad0e26f9312d380e613e312a3b307609296fe58 (diff) | |
download | ffmpeg-8887991a3109f94b7d019a11a86e6cd900105258.tar.gz |
avcodec/cbs_av1: add missing valid range of values for num_cb_points and num_cr_points
It is a requirement of bitstream conformance that num_cr_points is less than or equal to 10.
It is a requirement of bitstream conformance that num_cb_points is less than or equal to 10.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_av1.h')
-rw-r--r-- | libavcodec/cbs_av1.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/cbs_av1.h b/libavcodec/cbs_av1.h index 5466151f73..fdc629b00c 100644 --- a/libavcodec/cbs_av1.h +++ b/libavcodec/cbs_av1.h @@ -260,11 +260,11 @@ typedef struct AV1RawFrameHeader { uint8_t point_y_scaling[14]; uint8_t chroma_scaling_from_luma; uint8_t num_cb_points; - uint8_t point_cb_value[16]; - uint8_t point_cb_scaling[16]; + uint8_t point_cb_value[10]; + uint8_t point_cb_scaling[10]; uint8_t num_cr_points; - uint8_t point_cr_value[16]; - uint8_t point_cr_scaling[16]; + uint8_t point_cr_value[10]; + uint8_t point_cr_scaling[10]; uint8_t grain_scaling_minus_8; uint8_t ar_coeff_lag; uint8_t ar_coeffs_y_plus_128[24]; |