尝试添加rtp类型自动判断逻辑

This commit is contained in:
xiongziliang
2020-03-04 22:25:00 +08:00
parent f384f5e025
commit c77f82f02c
8 changed files with 36 additions and 15 deletions

View File

@@ -62,6 +62,8 @@ protected:
int64_t dts,
const void *data,
int bytes) override ;
private:
void getNextRtpType();
private:
std::shared_ptr<FILE> _save_file_rtp;
std::shared_ptr<FILE> _save_file_ps;
@@ -77,6 +79,9 @@ private:
Ticker _last_rtp_time;
map<int,Stamp> _stamps;
uint32_t _dts = 0;
int _rtp_type_idx = 0;
string _rtp_type;
int _rtp_dec_failed_cnt = 0;
};
}//namespace mediakit