srt can play stream

This commit is contained in:
xiongguangjie
2022-06-04 11:23:18 +08:00
parent 6237dd48dc
commit 91aa9c494c
5 changed files with 64 additions and 67 deletions

View File

@@ -80,6 +80,8 @@ bool HSExtStreamID::loadFromData(uint8_t *buf, size_t len) {
streamid.push_back(*(ptr));
ptr+=4;
}
char zero = 0x00;
streamid.erase(streamid.find_first_of(zero),streamid.size());
return true;
}