Commit just before tweaking. Output is sensible, but not correct.

This commit is contained in:
Oswald Auguste de Bruin 2013-07-01 13:12:17 +02:00 committed by Erik Zandvliet
parent 3a6d06d9a2
commit fa7f48ae2d

View file

@ -141,6 +141,7 @@ namespace Converters {
std::string tmpStr2 = it->second["codec"]; std::string tmpStr2 = it->second["codec"];
if (tmpStr2 == "H264"){ if (tmpStr2 == "H264"){
vse.setCodec("avc1"); vse.setCodec("avc1");
} }
vse.setDataReferenceIndex(1); vse.setDataReferenceIndex(1);
vse.setWidth(it->second["width"].asInt()); vse.setWidth(it->second["width"].asInt());
@ -306,7 +307,6 @@ namespace Converters {
//for(input.seekNext(); input.getJSON(); input.seekNext()) //for(input.seekNext(); input.getJSON(); input.seekNext())
//cout << input.getJSON["data"].asString() //cout << input.getJSON["data"].asString()
std::set<int> selector; std::set<int> selector;
for (JSON::ObjIter trackIt = input.getMeta()["tracks"].ObjBegin(); trackIt != input.getMeta()["tracks"].ObjEnd(); trackIt++){ for (JSON::ObjIter trackIt = input.getMeta()["tracks"].ObjBegin(); trackIt != input.getMeta()["tracks"].ObjEnd(); trackIt++){
selector.insert(trackIt->second["trackid"].asInt()); selector.insert(trackIt->second["trackid"].asInt());