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.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(); | ||||
|       } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Erik Zandvliet
						Erik Zandvliet