libwebm: re-implemented Block::EOS()
Change-Id: I91c6746d3e06e2f74dc899dbeec5c5270e150d08
This commit is contained in:
parent
3395c36a8e
commit
6f68021678
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user