mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
lavc/vvc: Increase size of ctb_size_y
sps_log2_ctu_size_minus5 is between 0 and 2, with 3 reserved for future use. The VVC decoder allows sps_log2_ctu_size_minus5 to be 3, and so ctb_size_y should be at least 16 bits to prevent overflows. An alternative patch would leave sps_log2_ctu_size_minus5 as 8 bits and disallow sps_log2_ctu_size_minus5 = 3. Signed-off-by: Frank Plowman <post@frankplowman.com>
This commit is contained in:
parent
5e380bcdb1
commit
993c231de0
@ -69,7 +69,7 @@ typedef struct VVCSPS {
|
||||
uint8_t bit_depth; ///< BitDepth
|
||||
uint8_t qp_bd_offset; ///< QpBdOffset
|
||||
uint8_t ctb_log2_size_y; ///< CtbLog2SizeY
|
||||
uint8_t ctb_size_y; ///< CtbSizeY
|
||||
uint16_t ctb_size_y; ///< CtbSizeY
|
||||
uint8_t min_cb_log2_size_y; ///< MinCbLog2SizeY
|
||||
uint8_t min_cb_size_y; ///< MinCbSizeY
|
||||
uint8_t max_tb_size_y; ///< MaxTbSizeY
|
||||
|
Loading…
Reference in New Issue
Block a user