mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
add MP4A-LATM decoder and encoder (#299)
This commit is contained in:
@@ -21,15 +21,16 @@ func TestDecode(t *testing.T) {
|
||||
clone := pkt.Clone()
|
||||
|
||||
addNALUs, _, err := d.Decode(pkt)
|
||||
|
||||
// test input integrity
|
||||
require.Equal(t, clone, pkt)
|
||||
|
||||
if err == ErrMorePacketsNeeded {
|
||||
continue
|
||||
}
|
||||
|
||||
require.NoError(t, err)
|
||||
nalus = append(nalus, addNALUs...)
|
||||
|
||||
// test input integrity
|
||||
require.Equal(t, clone, pkt)
|
||||
}
|
||||
|
||||
require.Equal(t, ca.nalus, nalus)
|
||||
|
Reference in New Issue
Block a user