Merge commit
This commit is contained in:
commit
6ddb73bde2
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ void DTSC::Stream::addPacket(JSON::Value & newPack){
|
||||||
newFrag["len"] = newFrag["len"].asInt() + 1;
|
newFrag["len"] = newFrag["len"].asInt() + 1;
|
||||||
newFrag["dur"] = newFrag["dur"].asInt() + (*fragIt)["len"].asInt();
|
newFrag["dur"] = newFrag["dur"].asInt() + (*fragIt)["len"].asInt();
|
||||||
//more than 10 seconds? store the new fragment
|
//more than 10 seconds? store the new fragment
|
||||||
if (newFrag["dur"].asInt() >= 10000){
|
if (newFrag["dur"].asInt() >= 10000 || (*fragIt)["len"].asInt() < 2){
|
||||||
/// \todo Make this variable instead of hardcoded 10 seconds?
|
/// \todo Make this variable instead of hardcoded 10 seconds?
|
||||||
metadata["tracks"][newTrack]["frags"].append(newFrag);
|
metadata["tracks"][newTrack]["frags"].append(newFrag);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue