修复生成mp4相关bug

This commit is contained in:
xiongziliang
2019-08-01 21:59:26 +08:00
parent 6d8db7d232
commit 6c0d89f417
3 changed files with 64 additions and 15 deletions

View File

@@ -74,7 +74,12 @@ protected:
*/
void onTrackFrame(const Frame::Ptr &frame) override;
private:
map<CodecId,int> _codec_to_trackid;
struct track_info{
int track_id = -1;
uint32_t start_dts = 0;
uint32_t start_pts = 0;
};
map<CodecId,track_info> _codec_to_trackid;
};