Fixed audio-only livestreams causing unbounded buffers.
This commit is contained in:
parent
370ebc49a2
commit
de46eee3b9
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ void DTSC::Stream::advanceRings(){
|
|||
}while (repeat);
|
||||
}
|
||||
static int fragNum = 1;
|
||||
if ((lastType() == VIDEO) && (buffers.front().isMember("keyframe"))){
|
||||
if ((lastType() == VIDEO && buffers.front().isMember("keyframe")) || (!metadata.isMember("video") && lastType() == AUDIO)){
|
||||
keyframes.push_front(DTSC::Ring(0));
|
||||
if ( !buffers.front().isMember("fragnum")){
|
||||
buffers.front()["fragnum"] = fragNum++;
|
||||
|
|
Loading…
Add table
Reference in a new issue