deprecate rtpav1.Decoder.Decode, rtph264.Decoder.Decode, rtph265.Decoder.Decode

This commit is contained in:
aler9
2023-08-14 13:22:26 +02:00
committed by Alessandro Ros
parent 482b047999
commit 8857e25353
13 changed files with 46 additions and 35 deletions

View File

@@ -57,7 +57,7 @@ func TestH264DecEncoder(t *testing.T) {
dec, err := format.CreateDecoder2()
require.NoError(t, err)
byts, _, err := dec.Decode(pkts[0])
byts, _, err := dec.DecodeUntilMarker(pkts[0])
require.NoError(t, err)
require.Equal(t, [][]byte{{0x01, 0x02, 0x03, 0x04}}, byts)
}