修复track clone不拷贝index的问题

This commit is contained in:
xia-chu 2023-12-09 21:46:47 +08:00
parent 48b7cd1462
commit 81020ff222
1 changed files with 4 additions and 1 deletions

View File

@ -34,7 +34,10 @@ public:
*
*
*/
Track(const Track &that) { _bit_rate = that._bit_rate; }
Track(const Track &that) {
_bit_rate = that._bit_rate;
setIndex(that.getIndex());
}
/**
* sps pps等信息