mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-02 08:17:33 +08:00
尝试添加rtp类型自动判断逻辑
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user