add TrackJPEG

This commit is contained in:
aler9
2022-06-06 12:51:33 +02:00
parent 2fa3148a27
commit 0101ad961c
5 changed files with 77 additions and 9 deletions

View File

@@ -19,8 +19,7 @@ func NewTrackPCMU() *TrackPCMU {
func newTrackPCMUFromMediaDescription(
control string,
rtpmapPart1 string,
md *psdp.MediaDescription) (*TrackPCMU, error,
rtpmapPart1 string) (*TrackPCMU, error,
) {
tmp := strings.Split(rtpmapPart1, "/")
if len(tmp) >= 3 && tmp[2] != "1" {