Update the handling of key frames in non-simple blocks.
Change-Id: I1705b20f4a9ee197c56533ae72df37531cb7ee87
This commit is contained in:
@@ -2865,6 +2865,7 @@ BlockGroup::BlockGroup(
|
|||||||
const long long stop = start + size_;
|
const long long stop = start + size_;
|
||||||
|
|
||||||
bool bSimpleBlock = false;
|
bool bSimpleBlock = false;
|
||||||
|
bool bReferenceBlock = false;
|
||||||
|
|
||||||
while (pos < stop)
|
while (pos < stop)
|
||||||
{
|
{
|
||||||
@@ -2878,6 +2879,8 @@ BlockGroup::BlockGroup(
|
|||||||
m_nextTimeCode = t;
|
m_nextTimeCode = t;
|
||||||
else
|
else
|
||||||
assert(false);
|
assert(false);
|
||||||
|
|
||||||
|
bReferenceBlock = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -2917,7 +2920,7 @@ BlockGroup::BlockGroup(
|
|||||||
assert(m_pBlock);
|
assert(m_pBlock);
|
||||||
|
|
||||||
if (!bSimpleBlock)
|
if (!bSimpleBlock)
|
||||||
m_pBlock->SetKey(m_prevTimeCode >= 0);
|
m_pBlock->SetKey(!bReferenceBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user