Fixed a bug for unkown types in DTSCFix
This commit is contained in:
parent
bb78226119
commit
60c9c2b67c
1 changed files with 13 additions and 10 deletions
|
@ -67,19 +67,22 @@ namespace Converters {
|
||||||
meta["tracks"][currentID] = meta["video"];
|
meta["tracks"][currentID] = meta["video"];
|
||||||
meta.removeMember("video");
|
meta.removeMember("video");
|
||||||
}
|
}
|
||||||
}
|
trackData[currentID].type = F.getJSON()["datatype"].asString();
|
||||||
if (F.getJSON()["datatype"].asString() == "audio"){
|
}else{
|
||||||
currentID = "audio0";
|
if (F.getJSON()["datatype"].asString() == "audio"){
|
||||||
trackData[currentID].packetID = 0;
|
currentID = "audio0";
|
||||||
if (meta.isMember("audio")){
|
trackData[currentID].packetID = 0;
|
||||||
meta["tracks"][currentID] = meta["audio"];
|
if (meta.isMember("audio")){
|
||||||
meta.removeMember("audio");
|
meta["tracks"][currentID] = meta["audio"];
|
||||||
|
meta.removeMember("audio");
|
||||||
|
}
|
||||||
|
trackData[currentID].type = F.getJSON()["datatype"].asString();
|
||||||
|
}else{
|
||||||
|
F.seekNext();
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (trackData[currentID].type == ""){
|
|
||||||
trackData[currentID].type = F.getJSON()["datatype"].asString();
|
|
||||||
}
|
|
||||||
if (F.getJSON()["time"].asInt() >= nowpack){
|
if (F.getJSON()["time"].asInt() >= nowpack){
|
||||||
nowpack = F.getJSON()["time"].asInt();
|
nowpack = F.getJSON()["time"].asInt();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue