diff --git a/src/converters/dtscfix.cpp b/src/converters/dtscfix.cpp index f5453175..c4d566eb 100644 --- a/src/converters/dtscfix.cpp +++ b/src/converters/dtscfix.cpp @@ -67,19 +67,22 @@ namespace Converters { meta["tracks"][currentID] = meta["video"]; meta.removeMember("video"); } - } - if (F.getJSON()["datatype"].asString() == "audio"){ - currentID = "audio0"; - trackData[currentID].packetID = 0; - if (meta.isMember("audio")){ - meta["tracks"][currentID] = meta["audio"]; - meta.removeMember("audio"); + trackData[currentID].type = F.getJSON()["datatype"].asString(); + }else{ + if (F.getJSON()["datatype"].asString() == "audio"){ + currentID = "audio0"; + trackData[currentID].packetID = 0; + if (meta.isMember("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){ nowpack = F.getJSON()["time"].asInt(); }