Fixed a bug in the DTSCFixer
This commit is contained in:
parent
d6b503b267
commit
09d68beda3
1 changed files with 8 additions and 4 deletions
|
@ -168,7 +168,7 @@ namespace Converters {
|
|||
trackData[currentID].totalSize += F.getJSON()["data"].asString().size();
|
||||
trackData[currentID].lastms = nowpack;
|
||||
trackData[currentID].parts.push_back(F.getJSON()["data"].asString().size());
|
||||
F.seekNext();
|
||||
F.parseNext();
|
||||
}
|
||||
|
||||
long long int firstms = 0x7fffffff;
|
||||
|
@ -224,10 +224,14 @@ namespace Converters {
|
|||
thisFrag["len"] = fragLen;
|
||||
thisFrag["dur"] = fragDur;
|
||||
thisFrag["size"] = fragSize;
|
||||
if (fragDur / 1000){
|
||||
thisFrag["bps"] = fragSize / (fragDur / 1000);
|
||||
if (maxBps < (fragSize / (fragDur / 1000))){
|
||||
maxBps = (fragSize / (fragDur / 1000));
|
||||
}
|
||||
} else {
|
||||
thisFrag["bps"] = 1;
|
||||
}
|
||||
meta["tracks"][it->first]["frags"].append(thisFrag);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue