﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1216	Out of bounds array access (8.5.6.6.3)	fbossen		"It seems that input values refIdxL0 and refIdxL1 may be equal to -1 (for example, see assignments in (456), (519), (649)). In such case, they should not be used to index arrays LumaWeightLX, luma_offset_lX, ChromaWeightLX, and ChromaOffsetLX.

Assignments such as
w0 = LumaWeightL0[ refIdxL0 ]
could be changed to
w0 = ( refIdxL0 >= 0 ) ?  LumaWeightL0[ refIdxL0 ] : 0

or the assignment could be conditioned on predFlagL0:
When predFlagL0 is 1, the variables o0 and w0 are derived as follows:
  w0 = ( cIdx == 0 ) ? LumaWeightL0[ refIdxL0 ] : ChromaWeightL0[ refIdxL0 ][ cIdx − 1 ]
  o0 =  ( ( cIdx == 0 ) ? luma_offset_l0[ refIdxL0 ]  : ChromaOffsetL0[ refIdxL0 ][ cIdx − 1 ] ) <<  ( bitDepth − 8 )
 "	defect	closed	minor		spec	VVC D10 vD	fixed		ksuehring bbross XiangLi fbossen jvet@…
