1
0
Fork 0
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:
john 2022-09-22 07:37:22 -05:00 committed by GitHub
parent 4acb246c57
commit b328142140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 34 additions and 6 deletions

View file

@ -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