优化代码

除1024改成右移10位
This commit is contained in:
xia-chu
2024-11-29 23:07:02 +08:00
parent 67668c9f2c
commit 87b42ab492
13 changed files with 17 additions and 17 deletions

View File

@@ -267,7 +267,7 @@ Sdp::Ptr H265Track::getSdp(uint8_t payload_type) const {
WarnL << getCodecName() << " Track未准备好";
return nullptr;
}
return std::make_shared<H265Sdp>(_vps, _sps, _pps, payload_type, getBitRate() / 1024);
return std::make_shared<H265Sdp>(_vps, _sps, _pps, payload_type, getBitRate() >> 10);
}
namespace {