Commit 037faeba authored by Xiang Li's avatar Xiang Li
Browse files

Fix encoding crash in JVET-N0329

parent cf9f65ef
......@@ -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
//! \}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment