Add support S16LE (PCM-LE) for RTSP server

This commit is contained in:
Alex X
2024-07-26 14:47:42 +03:00
parent 57d48f53e0
commit ed99025bd6
2 changed files with 8 additions and 2 deletions
+2
View File
@@ -162,6 +162,8 @@ func (c *Conn) packetWriter(codec *core.Codec, channel, payloadType uint8) core.
case core.CodecJPEG:
handlerFunc = mjpeg.RTPPay(handlerFunc)
}
} else if codec.Name == core.CodecPCML {
handlerFunc = pcm.LittleToBig(handlerFunc)
} else if c.PacketSize != 0 {
switch codec.Name {
case core.CodecH264: