mirror of https://bitbucket.org/ausocean/av.git
codec/h264: fixed some minor naming and comment spelling
This commit is contained in:
parent
722ddc6ccb
commit
0e7504374e
|
@ -163,13 +163,13 @@ const (
|
|||
maxRTPSize = 4096
|
||||
)
|
||||
|
||||
// RTPLexer is a lexer for lexing H265 from RTP packets.
|
||||
// RTPLexer is a lexer for lexing H264 from RTP packets.
|
||||
type RTPLexer struct {
|
||||
buf *bytes.Buffer // Holds the current access unit.
|
||||
frag bool // Indicates if we're currently dealing with a fragmentation packet.
|
||||
}
|
||||
|
||||
// NewRTPLexer returns a new RTPLexer.
|
||||
// NewRTPLexer returns a new RTPLexer.
|
||||
func NewRTPLexer() *RTPLexer {
|
||||
return &RTPLexer{
|
||||
buf: bytes.NewBuffer(make([]byte, 0, maxAUSize))}
|
||||
|
|
|
@ -258,7 +258,7 @@ func (d *destination) Write(p []byte) (int, error) {
|
|||
|
||||
// TestLex checks that the Lexer can correctly extract H264 access units from
|
||||
// h264 RTP stream in RTP payload format.
|
||||
func TestLex(t *testing.T) {
|
||||
func TestRTPLex(t *testing.T) {
|
||||
const rtpVer = 2
|
||||
|
||||
tests := []struct {
|
||||
|
|
Loading…
Reference in New Issue