codec/h265/lex.go: renamed marker to markerIsSet

This commit is contained in:
Saxon 2019-05-09 14:15:11 +09:30
parent 31d756fef2
commit c31c76e1f5
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)
}
marker, err := rtp.Marker(buf[:n])
markerIsSet, err := rtp.Marker(buf[:n])
if err != nil {
return fmt.Errorf("could not get marker bit, failed with err: %v\n", err)
}
if marker {
if markerIsSet {
_, err := l.buf.WriteTo(dst)
if err != nil {
// TODO: work out what to do here.