mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Printf warn log when SRT audio duration too large (#3186)
* SRT: print warning log when audio duration too large * Fix #3164: SRT: Choppy when audio ts gap is too large. v5.0.65 Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
4acb246c57
commit
b328142140
4 changed files with 34 additions and 6 deletions
|
@ -20,6 +20,7 @@ class SrsSharedPtrMessage;
|
|||
class SrsRequest;
|
||||
class SrsLiveSource;
|
||||
class SrsSrtSource;
|
||||
class SrsAlonePithyPrint;
|
||||
|
||||
// The SRT packet with shared message.
|
||||
class SrsSrtPacket
|
||||
|
@ -136,6 +137,13 @@ private:
|
|||
|
||||
SrsRequest* req_;
|
||||
SrsLiveSource* live_source_;
|
||||
|
||||
// SRT to rtmp, video stream id.
|
||||
int video_streamid_;
|
||||
// SRT to rtmp, audio stream id.
|
||||
int audio_streamid_;
|
||||
// Cycle print when audio duration too large because mpegts may merge multi audio frame in one pes packet.
|
||||
SrsAlonePithyPrint* pp_audio_duration_;
|
||||
};
|
||||
|
||||
class SrsSrtSource
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue