Fixed a bug for live keyframe generation on non-video tracks
This commit is contained in:
parent
3051173f3c
commit
a5a8546250
1 changed files with 2 additions and 3 deletions
|
@ -436,11 +436,10 @@ namespace Mist {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (myMeta.tracks[pack["trackid"].asInt()].type != "video"){
|
if (myMeta.tracks[pack["trackid"].asInt()].type != "video"){
|
||||||
if (pack["time"].asInt() - bookKeeping[trackMap[pack["trackid"].asInt()]].lastKeyTime >= 5000){
|
if ((pack["time"].asInt() - bookKeeping[trackMap[pack["trackid"].asInt()]].lastKeyTime) >= 5000){
|
||||||
pack["keyframe"] = 1LL;
|
pack["keyframe"] = 1LL;
|
||||||
DEBUG_MSG(DLVL_DEVEL, "Fake keyframe added for track %d", pack["trackid"].asInt());
|
bookKeeping[trackMap[pack["trackid"].asInt()]].lastKeyTime = pack["time"].asInt();
|
||||||
}
|
}
|
||||||
bookKeeping[trackMap[pack["trackid"].asInt()]].lastKeyTime = pack["time"].asInt();
|
|
||||||
}
|
}
|
||||||
pack["trackid"] = trackMap[pack["trackid"].asInt()];
|
pack["trackid"] = trackMap[pack["trackid"].asInt()];
|
||||||
long long unsigned int tNum = pack["trackid"].asInt();
|
long long unsigned int tNum = pack["trackid"].asInt();
|
||||||
|
|
Loading…
Add table
Reference in a new issue