Skip to content
Snippets Groups Projects
Commit 08aef8a4 authored by Xiang Li's avatar Xiang Li
Browse files

Merge branch 'BUG_FIX_TICKET_1515' into 'master'

Fix #1515: Overflow in ALF for bitdepth >10

See merge request jvet/VVCSoftware_VTM!2129
parents 12a2ce61 ca9802a4
No related branches found
No related tags found
No related merge requests found
......@@ -1011,7 +1011,11 @@ void AdaptiveLoopFilter::deriveClassificationBlk(AlfClassifier **classifier, int
d0 = sumD0;
dirTempD = 2;
}
#if RExt__HIGH_BIT_DEPTH_SUPPORT
if( (uint64_t)d1 * (uint64_t)hv0 > (uint64_t)hv1 * (uint64_t)d0 )
#else
if( (uint32_t)d1 * (uint32_t)hv0 > (uint32_t)hv1 * (uint32_t)d0 )
#endif
{
hvd1 = d1;
hvd0 = d0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment