libwebm: re-implemented Block::EOS()
Change-Id: I91c6746d3e06e2f74dc899dbeec5c5270e150d08
This commit is contained in:
@@ -7828,7 +7828,7 @@ BlockEntry::~BlockEntry()
|
|||||||
|
|
||||||
bool BlockEntry::EOS() const
|
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
|
long BlockEntry::GetIndex() const
|
||||||
{
|
{
|
||||||
if (m_index == LONG_MIN) //EOS
|
return m_index;
|
||||||
return -1;
|
|
||||||
|
|
||||||
return labs(m_index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user