-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename MPEG2Video into MPEG1Video, MPEG2Audio into MPEG1Audio
- Loading branch information
Showing
20 changed files
with
120 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package formats //nolint:dupl | ||
|
||
import ( | ||
"github.com/pion/rtp" | ||
) | ||
|
||
// MPEG1Video is a RTP format for a MPEG-1/2 Video codec. | ||
// Specification: https://datatracker.ietf.org/doc/html/rfc2250 | ||
type MPEG1Video struct{} | ||
|
||
func (f *MPEG1Video) unmarshal(_ uint8, _ string, _ string, _ string, _ map[string]string) error { | ||
return nil | ||
} | ||
|
||
// Codec implements Format. | ||
func (f *MPEG1Video) Codec() string { | ||
return "MPEG-1/2 Video" | ||
} | ||
|
||
// String implements Format. | ||
// | ||
// Deprecated: replaced by Codec(). | ||
func (f *MPEG1Video) String() string { | ||
return f.Codec() | ||
} | ||
|
||
// ClockRate implements Format. | ||
func (f *MPEG1Video) ClockRate() int { | ||
return 90000 | ||
} | ||
|
||
// PayloadType implements Format. | ||
func (f *MPEG1Video) PayloadType() uint8 { | ||
return 32 | ||
} | ||
|
||
// RTPMap implements Format. | ||
func (f *MPEG1Video) RTPMap() string { | ||
return "" | ||
} | ||
|
||
// FMTP implements Format. | ||
func (f *MPEG1Video) FMTP() map[string]string { | ||
return nil | ||
} | ||
|
||
// PTSEqualsDTS implements Format. | ||
func (f *MPEG1Video) PTSEqualsDTS(*rtp.Packet) bool { | ||
return true | ||
} | ||
|
||
// MPEG2Video is an alias for MPEG1Video. | ||
// | ||
// Deprecated: replaced by MPEG1Video. | ||
type MPEG2Video = MPEG1Video |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
pkg/formats/rtpmpeg2audio/decoder.go → pkg/formats/rtpmpeg1audio/decoder.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rtpmpeg2audio | ||
package rtpmpeg1audio | ||
|
||
import ( | ||
"errors" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/formats/rtpmpeg2audio/decoder_test.go → pkg/formats/rtpmpeg1audio/decoder_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rtpmpeg2audio | ||
package rtpmpeg1audio | ||
|
||
import ( | ||
"testing" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/formats/rtpmpeg2audio/encoder.go → pkg/formats/rtpmpeg1audio/encoder.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rtpmpeg2audio | ||
package rtpmpeg1audio | ||
|
||
import ( | ||
"crypto/rand" | ||
|
2 changes: 1 addition & 1 deletion
2
pkg/formats/rtpmpeg2audio/encoder_test.go → pkg/formats/rtpmpeg1audio/encoder_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package rtpmpeg2audio | ||
package rtpmpeg1audio | ||
|
||
import ( | ||
"testing" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Package rtpmpeg1audio contains a RTP/MPEG-1/2 Audio decoder and encoder. | ||
package rtpmpeg1audio |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,26 @@ | ||
// Package rtpmpeg2audio contains a RTP/MPEG-1/2 Audio decoder and encoder. | ||
package rtpmpeg2audio | ||
|
||
import ( | ||
"github.com/bluenviron/gortsplib/v3/pkg/formats/rtpmpeg1audio" | ||
) | ||
|
||
// ErrMorePacketsNeeded is an alis for rtpmpeg1audio.ErrMorePacketsNeeded. | ||
// | ||
// Deprecated: replaced by rtpmpeg1audio.ErrMorePacketsNeeded. | ||
var ErrMorePacketsNeeded = rtpmpeg1audio.ErrMorePacketsNeeded | ||
|
||
// ErrNonStartingPacketAndNoPrevious is an alis for rtpmpeg1audio.ErrNonStartingPacketAndNoPrevious. | ||
// | ||
// Deprecated: replaced by rtpmpeg1audio.ErrNonStartingPacketAndNoPrevious. | ||
var ErrNonStartingPacketAndNoPrevious = rtpmpeg1audio.ErrNonStartingPacketAndNoPrevious | ||
|
||
// Decoder is an alis for rtpmpeg1audio.Decoder. | ||
// | ||
// Deprecated: replaced by rtpmpeg1audio.Decoder. | ||
type Decoder = rtpmpeg1audio.Decoder | ||
|
||
// Encoder is an alis for rtpmpeg1audio.Encoder. | ||
// | ||
// Deprecated: replaced by rtpmpeg1audio.Encoder. | ||
type Encoder = rtpmpeg1audio.Encoder |