Fixed support for gstreamer matroska streams
This commit is contained in:
parent
ecdcb977b1
commit
c9dc42ff18
1 changed files with 6 additions and 1 deletions
|
@ -509,7 +509,12 @@ namespace EBML{
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Element::getValString() const{return std::string(getPayload(), getPayloadLen());}
|
std::string Element::getValString() const{
|
||||||
|
uint64_t strLen = getPayloadLen();
|
||||||
|
const char * strPtr = getPayload();
|
||||||
|
while (strLen && strPtr[strLen-1] == 0){--strLen;}
|
||||||
|
return std::string(strPtr, strLen);
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t Block::getTrackNum() const{return UniInt::readInt(getPayload());}
|
uint64_t Block::getTrackNum() const{return UniInt::readInt(getPayload());}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue