﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
684	Weighted Prediction Formula Bug in 8.5.2.2.3.2 Weighted sample prediction process	yul	bbross	"In Section 8.5.2.2.3.2 Weighted sample prediction process, Equations (8-227) and (8-229),
predSamples[ x ][ y ] = Clip3( 0, ( 1 << bitDepth ) − 1, predSamplesL0[ x ][ y ] * w0 + o0 ) 	(8-227)
predSamples[ x ][ y ] = Clip3( 0, ( 1 << bitDepth ) − 1, predSamplesL1[ x ][ y ] * w1 + o1 ) 	(8-229)
have fatal errors that predSamplesL0 and predSamplesL1 are not right-shifted by ""shift1"". Those errors result in predSamples are always equal to ( 1 << bitDepth ) − 1.

The correct equations are given as follows:
predSamples[ x ][ y ] = Clip3( 0, ( 1 << bitDepth ) − 1, (predSamplesL0[ x ][ y ] + offset1 ) >> shift1 ) * w0 + o0 ) 	(8-227)
predSamples[ x ][ y ] = Clip3( 0, ( 1 << bitDepth ) − 1, (predSamplesL1[ x ][ y ] + offset1 ) >> shift1 ) * w1 + o1 ) 	(8-229)"	defect	closed	critical	D8	Text	D8 (J1003) d7	fixed	weighted prediction	bbross wjhan jct-vc@…
