codec/h264: fixed some minor naming and comment spelling

This commit is contained in:
Saxon 2019-05-22 15:09:54 +09:30
parent 722ddc6ccb
commit 0e7504374e
2 changed files with 3 additions and 3 deletions

View File

@ -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))}

View File

@ -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 {