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

Fix encoding crash in JVET-N0329

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