mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
remove suffix from new functions
This commit is contained in:
@@ -54,8 +54,8 @@ func (f *G711) PTSEqualsDTS(*rtp.Packet) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// CreateDecoder2 creates a decoder able to decode the content of the format.
|
||||
func (f *G711) CreateDecoder2() (*rtpsimpleaudio.Decoder, error) {
|
||||
// CreateDecoder creates a decoder able to decode the content of the format.
|
||||
func (f *G711) CreateDecoder() (*rtpsimpleaudio.Decoder, error) {
|
||||
d := &rtpsimpleaudio.Decoder{
|
||||
SampleRate: 8000,
|
||||
}
|
||||
@@ -68,8 +68,8 @@ func (f *G711) CreateDecoder2() (*rtpsimpleaudio.Decoder, error) {
|
||||
return d, nil
|
||||
}
|
||||
|
||||
// CreateEncoder2 creates an encoder able to encode the content of the format.
|
||||
func (f *G711) CreateEncoder2() (*rtpsimpleaudio.Encoder, error) {
|
||||
// CreateEncoder creates an encoder able to encode the content of the format.
|
||||
func (f *G711) CreateEncoder() (*rtpsimpleaudio.Encoder, error) {
|
||||
e := &rtpsimpleaudio.Encoder{
|
||||
PayloadType: f.PayloadType(),
|
||||
SampleRate: 8000,
|
||||
|
Reference in New Issue
Block a user