Skip to content

Commit

Permalink
Fix a bug: PacketBuffer init.
Browse files Browse the repository at this point in the history
  • Loading branch information
siwonred committed Apr 13, 2023
1 parent 9d2d422 commit 58d85a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/jitter/packet_buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (p *PacketBuffer) init(ssrc uint32) {

func (p *PacketBuffer) Put(packet *rtp.Packet) {
if p.ssrc != packet.SSRC {
p.init(p.ssrc)
p.init(packet.SSRC)
}

p.buffer.Put(int64(packet.Timestamp), packet.Payload)
Expand Down

0 comments on commit 58d85a5

Please sign in to comment.