Fixed Ogg problems
This commit is contained in:
parent
c4e0c399ac
commit
cc38f19477
1 changed files with 5 additions and 3 deletions
|
@ -227,9 +227,11 @@ namespace OGG{
|
||||||
STerrMSG();
|
STerrMSG();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (layout[i] != 0){
|
if (layout[i] >= 0){//fix somewhere here
|
||||||
table[place] = layout[i];
|
table[place] = layout[i];
|
||||||
place++;
|
if (place<255){//last segment does not need a closing 0
|
||||||
|
place++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setPageSegments(place);
|
setPageSegments(place);
|
||||||
|
@ -472,7 +474,7 @@ namespace OGG{
|
||||||
void Page::readDTSCVector(std::vector <JSON::Value> DTSCVec, unsigned int serial, unsigned int sequence){
|
void Page::readDTSCVector(std::vector <JSON::Value> DTSCVec, unsigned int serial, unsigned int sequence){
|
||||||
clear();
|
clear();
|
||||||
setVersion();
|
setVersion();
|
||||||
if (DTSCVec[0]["OggCont"]){
|
if (DTSCVec[0]["OggCont"] || DTSCVec[0]["granule"].asInt() == -1){//if it is a continue page, also for granule=0xFFFFFFFF
|
||||||
setHeaderType(1);//headertype 1 = Continue Page
|
setHeaderType(1);//headertype 1 = Continue Page
|
||||||
}else if (DTSCVec[0]["OggEOS"]){
|
}else if (DTSCVec[0]["OggEOS"]){
|
||||||
setHeaderType(4);//headertype 4 = end of stream
|
setHeaderType(4);//headertype 4 = end of stream
|
||||||
|
|
Loading…
Add table
Reference in a new issue