mirror of
https://github.com/aler9/gortsplib
synced 2025-10-15 11:40:55 +08:00
fix parsing of H264 tracks with empty sprop-parameter-sets
This commit is contained in:
@@ -443,6 +443,30 @@ func TestNewFromMediaDescription(t *testing.T) {
|
||||
PacketizationMode: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
"h264 empty sprop-parameter-sets",
|
||||
&psdp.MediaDescription{
|
||||
MediaName: psdp.MediaName{
|
||||
Media: "video",
|
||||
Protos: []string{"RTP", "AVP"},
|
||||
Formats: []string{"96"},
|
||||
},
|
||||
Attributes: []psdp.Attribute{
|
||||
{
|
||||
Key: "rtpmap",
|
||||
Value: "96 H264/90000",
|
||||
},
|
||||
{
|
||||
Key: "fmtp",
|
||||
Value: "96 packetization-mode=1; sprop-parameter-sets=",
|
||||
},
|
||||
},
|
||||
},
|
||||
&H264{
|
||||
PayloadTyp: 96,
|
||||
PacketizationMode: 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
"video h265",
|
||||
&psdp.MediaDescription{
|
||||
|
Reference in New Issue
Block a user