Fixed ogg problems with sintel.ogv. Note that sintel.ogv was already slightly corrupt.
This commit is contained in:
parent
fcd697e6bb
commit
8099d035a7
3 changed files with 18 additions and 8 deletions
|
@ -160,7 +160,7 @@ namespace Connector_HTTP {
|
|||
}
|
||||
//parse DTSC to Ogg here
|
||||
long long unsigned int temp = Strm.getPacket()["trackid"].asInt();
|
||||
if(prevGran[temp] != Strm.getPacket()["granule"].asInt() && DTSCBuffer[temp].size() != 0){
|
||||
if((prevGran[temp] != Strm.getPacket()["granule"].asInt() || prevGran[temp] == -1) && DTSCBuffer[temp].size() != 0){
|
||||
curOggPage.readDTSCVector(DTSCBuffer[temp], oggMeta.DTSCID2OGGSerial[temp], oggMeta.DTSCID2seqNum[temp]);
|
||||
conn.SendNow((char*)curOggPage.getPage(), curOggPage.getPageSize());
|
||||
DTSCBuffer[temp].clear();
|
||||
|
@ -168,11 +168,10 @@ namespace Connector_HTTP {
|
|||
if (Strm.lastType() == DTSC::PAUSEMARK){
|
||||
conn.close();
|
||||
}
|
||||
if (Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){
|
||||
//long long unsigned int prevID = Strm.getPacket()["trackid"].asInt();
|
||||
//if (Strm.lastType() == DTSC::AUDIO || Strm.lastType() == DTSC::VIDEO){
|
||||
DTSCBuffer[temp].push_back(Strm.getPacket());
|
||||
prevGran[temp] = Strm.getPacket()["granule"].asInt();
|
||||
}
|
||||
//}
|
||||
}
|
||||
}else{
|
||||
Util::sleep(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue