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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user