兼容一些不规范的流

This commit is contained in:
xiongziliang
2021-02-28 20:58:30 +08:00
parent 56f044f8ed
commit fb3603b433
3 changed files with 17 additions and 3 deletions

View File

@@ -186,7 +186,11 @@ void H265Track::inputFrame_l(const Frame::Ptr &frame) {
}
void H265Track::onReady() {
getHEVCInfo(_vps, _sps, _width, _height, _fps);
if (!getHEVCInfo(_vps, _sps, _width, _height, _fps)) {
_vps.clear();
_sps.clear();
_pps.clear();
}
}
Track::Ptr H265Track::clone() {