Added an isFixed member to the output of the header.
This commit is contained in:
parent
9228198097
commit
4db81af990
1 changed files with 4 additions and 0 deletions
|
@ -601,8 +601,12 @@ void DTSC::File::readHeader(int pos){
|
||||||
if (pos == 0){
|
if (pos == 0){
|
||||||
firstmetadata = metadata;
|
firstmetadata = metadata;
|
||||||
}
|
}
|
||||||
|
if (fread(buffer, 4, 1, F) != 1){
|
||||||
|
metadata["isFixed"] = true;
|
||||||
|
}
|
||||||
//if there is another header, read it and replace metadata with that one.
|
//if there is another header, read it and replace metadata with that one.
|
||||||
if (metadata.isMember("moreheader") && metadata["moreheader"].asInt() > 0){
|
if (metadata.isMember("moreheader") && metadata["moreheader"].asInt() > 0){
|
||||||
|
metadata.removeMember("isFixed");
|
||||||
readHeader(metadata["moreheader"].asInt());
|
readHeader(metadata["moreheader"].asInt());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue