mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
add RTP/MPEG-4 Video decoder and encoder (#266)
This commit is contained in:
@@ -14,13 +14,12 @@ func TestDecode(t *testing.T) {
|
||||
d.Init()
|
||||
|
||||
for _, pkt := range ca.pkts {
|
||||
image, pts, err := d.Decode(pkt)
|
||||
image, _, err := d.Decode(pkt)
|
||||
if err == ErrMorePacketsNeeded {
|
||||
continue
|
||||
}
|
||||
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, ca.pts, pts)
|
||||
require.Equal(t, ca.image, image)
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user