libwebm: re-implemented Block::EOS()

Change-Id: I91c6746d3e06e2f74dc899dbeec5c5270e150d08
This commit is contained in:
matthewjheaney 2011-04-07 19:36:15 -07:00
parent 3395c36a8e
commit 6f68021678

View File

@ -7828,7 +7828,7 @@ BlockEntry::~BlockEntry()
bool BlockEntry::EOS() const
{
return (m_index == LONG_MIN);
return (GetKind() == kBlockEOS);
}
@ -7840,10 +7840,7 @@ const Cluster* BlockEntry::GetCluster() const
long BlockEntry::GetIndex() const
{
if (m_index == LONG_MIN) //EOS
return -1;
return labs(m_index);
return m_index;
}