mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
fix streamid zero error
This commit is contained in:
@@ -81,7 +81,9 @@ bool HSExtStreamID::loadFromData(uint8_t *buf, size_t len) {
|
||||
ptr+=4;
|
||||
}
|
||||
char zero = 0x00;
|
||||
streamid.erase(streamid.find_first_of(zero),streamid.size());
|
||||
if(streamid.back() == zero){
|
||||
streamid.erase(streamid.find_first_of(zero),streamid.size());
|
||||
}
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user