Do codec munging when munging RTP header. (#2665)

* Do codec munging when munging RTP header.

It was possible for probe packets to get in between RTP munging and
codec munging and throw off sequence number while dropping packets.
Affected only VP8 as it does codec munging.

* do not pass in buffer as it is created anyway

* flip fields

* flip order

* fix test

* call translate for all tracks

* simplify
This commit is contained in:
Raja Subramanian
2024-04-19 22:32:13 +05:30
committed by GitHub
parent 8eb86f1077
commit f4745b8437
7 changed files with 153 additions and 193 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ type CodecMunger interface {
SetLast(extPkt *buffer.ExtPacket)
UpdateOffsets(extPkt *buffer.ExtPacket)
UpdateAndGet(extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporal int32, outputHeader []byte) (int, int, error)
UpdateAndGet(extPkt *buffer.ExtPacket, snOutOfOrder bool, snHasGap bool, maxTemporal int32) (int, []byte, error)
UpdateAndGetPadding(newPicture bool, outputHeader []byte) (int, error)
UpdateAndGetPadding(newPicture bool) ([]byte, error)
}