新增Ts拉流

This commit is contained in:
Alex
2022-01-04 15:32:59 +08:00
parent a441168004
commit 4792f6213b
8 changed files with 467 additions and 9 deletions

View File

@@ -49,7 +49,14 @@ void HttpTSPlayer::onResponseBody(const char *buf, size_t size, size_t recved_si
}
if (_split_ts) {
_segment.input(buf, size);
try {
_segment.input(buf, size);
}catch (std::exception &ex) {
WarnL << ex.what();
//ts解析失败清空缓存数据
_segment.reset();
throw;
}
} else {
onPacket(buf, size);
}