simplify FMTP decoding and encoding (#205)

This commit is contained in:
Alessandro Ros
2023-03-13 22:44:31 +01:00
committed by GitHub
parent 13fab2962e
commit bc248c8e1d
32 changed files with 346 additions and 399 deletions

View File

@@ -26,7 +26,9 @@ func TestOpusMediaDescription(t *testing.T) {
rtpmap, fmtp := format.Marshal()
require.Equal(t, "opus/48000/2", rtpmap)
require.Equal(t, "sprop-stereo=1", fmtp)
require.Equal(t, map[string]string{
"sprop-stereo": "1",
}, fmtp)
}
func TestOpusDecEncoder(t *testing.T) {