mirror of https://bitbucket.org/ausocean/av.git
helpers: added pcm as SID
This commit is contained in:
parent
a306f31d4a
commit
8fdd0169fa
|
@ -31,6 +31,7 @@ const (
|
||||||
H264SID = 27
|
H264SID = 27
|
||||||
H265SID = 36
|
H265SID = 36
|
||||||
MJPEGSID = 28
|
MJPEGSID = 28
|
||||||
|
PCMSID = 191
|
||||||
ADPCMSID = 192
|
ADPCMSID = 192
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -43,9 +44,11 @@ func SIDToMIMEType(id int) (string, error) {
|
||||||
return "video/h265", nil
|
return "video/h265", nil
|
||||||
case MJPEGSID:
|
case MJPEGSID:
|
||||||
return "video/x-motion-jpeg", nil
|
return "video/x-motion-jpeg", nil
|
||||||
|
case PCMSID:
|
||||||
|
return "audio/pcm", nil
|
||||||
case ADPCMSID:
|
case ADPCMSID:
|
||||||
return "audio/adpcm", nil
|
return "audio/adpcm", nil
|
||||||
default:
|
default:
|
||||||
return "", errors.New("unkown stream ID")
|
return "", errors.New("unknown stream ID")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue