mirror of https://bitbucket.org/ausocean/av.git
codec/h265: renamed RTP marker from m to marker
This commit is contained in:
parent
449f8bf151
commit
461533199d
|
@ -107,12 +107,12 @@ func (l *Lexer) Lex(dst io.Writer, src io.Reader, delay time.Duration) error {
|
||||||
l.writeWithPrefix(payload)
|
l.writeWithPrefix(payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
m, err := rtp.Marker(buf[:n])
|
marker, err := rtp.Marker(buf[:n])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("could not get marker bit, failed with err: %v\n", err)
|
return fmt.Errorf("could not get marker bit, failed with err: %v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if m {
|
if marker {
|
||||||
_, err := l.buf.WriteTo(dst)
|
_, err := l.buf.WriteTo(dst)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO: work out what to do here.
|
// TODO: work out what to do here.
|
||||||
|
|
Loading…
Reference in New Issue