支持bitrate

This commit is contained in:
xiongziliang
2020-12-05 12:22:17 +08:00
parent 42679cdf98
commit 55cf411c1e
23 changed files with 102 additions and 52 deletions

View File

@@ -65,7 +65,7 @@ public:
* @param key 是否为关键帧第一个包
*/
void onWrite(TSPacket::Ptr packet, bool key) override {
_speed += packet->size();
_speed[TrackVideo] += packet->size();
if (!_ring) {
createRing();
}