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

Merge branch 'fix_n0329' into 'master'

Fix encoding crash in JVET-N0329 integration

See merge request jvet/VVCSoftware_VTM!435
parents cf9f65ef 037faeba
No related branches found
No related tags found
No related merge requests found
......@@ -446,7 +446,15 @@ int IbcHashMap::calHashBlkMatchPerc(const Area& lumaArea)
total++;
}
}
return 100 * hit / total;
if (total == 0)
{
return 0;
}
else
{
return 100 * hit / total;
}
}
#endif
//! \}
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