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