Fix nil pointer dereference (#1949)
This commit is contained in:
@@ -770,7 +770,9 @@ func (r *RTPStats) MaybeAdjustFirstPacketTime(srData *RTCPSenderReportData) {
|
|||||||
r.lock.Lock()
|
r.lock.Lock()
|
||||||
defer r.lock.Unlock()
|
defer r.lock.Unlock()
|
||||||
|
|
||||||
r.maybeAdjustFirstPacketTime(srData.RTPTimestampExt)
|
if srData != nil {
|
||||||
|
r.maybeAdjustFirstPacketTime(srData.RTPTimestampExt)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RTPStats) maybeAdjustFirstPacketTime(extTS uint64) {
|
func (r *RTPStats) maybeAdjustFirstPacketTime(extTS uint64) {
|
||||||
|
|||||||
Reference in New Issue
Block a user