codec/h265: renamed RTP marker from m to marker

This commit is contained in:
Saxon 2019-05-09 12:02:23 +09:30
parent 449f8bf151
commit 461533199d
1 changed files with 2 additions and 2 deletions

View File

@ -107,12 +107,12 @@ func (l *Lexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error {
l.writeWithPrefix(payload)
}
m, err := rtp.Marker(buf[:n])
marker, err := rtp.Marker(buf[:n])
if err != nil {
return fmt.Errorf("could not get marker bit, failed with err: %v\n", err)
}
if m {
if marker {
_, err := l.buf.WriteTo(dst)
if err != nil {
// TODO: work out what to do here.