mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
fix invalid TID=0 in writeAggregationUnit of rtph265 encoder (#782)
* fix invalid TID=0 in writeAggregationUnit of rtph265 encoder * return error in case of invalid NALUs --------- Co-authored-by: aler9 <46489434+aler9@users.noreply.github.com>
This commit is contained in:
@@ -56,9 +56,9 @@ var cases = []struct {
|
||||
{
|
||||
"aggregated",
|
||||
[][]byte{
|
||||
{0x07, 0x07},
|
||||
{0x08, 0x08},
|
||||
{0x09, 0x09},
|
||||
{0x07, 0x57},
|
||||
{0x08, 0x66},
|
||||
{0x09, 0x75},
|
||||
},
|
||||
[]*rtp.Packet{
|
||||
{
|
||||
@@ -70,8 +70,8 @@ var cases = []struct {
|
||||
SSRC: 0x9dbb7812,
|
||||
},
|
||||
Payload: []byte{
|
||||
0x60, 0x00, 0x00, 0x02, 0x07, 0x07, 0x00, 0x02,
|
||||
0x08, 0x08, 0x00, 0x02, 0x09, 0x09,
|
||||
0x60, 0x65, 0x00, 0x02, 0x07, 0x57, 0x00, 0x02,
|
||||
0x08, 0x66, 0x00, 0x02, 0x09, 0x75,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user