mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
Restore relative timestamp
This commit is contained in:

committed by
Eric Daniels

parent
04b46212a9
commit
d5e07a1bcf
@@ -145,7 +145,7 @@ func (i *IVFWriter) WriteRTP(packet *rtp.Packet) error {
|
|||||||
if i.count == 0 {
|
if i.count == 0 {
|
||||||
i.firstFrameTimestamp = packet.Header.Timestamp
|
i.firstFrameTimestamp = packet.Header.Timestamp
|
||||||
}
|
}
|
||||||
relativeTstampMs := 1000 * uint64(packet.Header.Timestamp) / i.clockRate
|
relativeTstampMs := 1000 * uint64(packet.Header.Timestamp-i.firstFrameTimestamp) / i.clockRate
|
||||||
|
|
||||||
if i.isVP8 {
|
if i.isVP8 {
|
||||||
vp8Packet := codecs.VP8Packet{}
|
vp8Packet := codecs.VP8Packet{}
|
||||||
|
Reference in New Issue
Block a user