protocol/rtp: fixed a bug in rtp.Marker

This commit is contained in:
Saxon 2019-05-02 00:51:58 +09:30
parent 85ece7d1ed
commit a94e698c6b
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ func Marker(d []byte) (bool, error) {
return false, errors.New(badVer)
}
return d[1]&0x80 == 1, nil
return d[1]&0x80 != 0, nil
}
// Payload returns the payload from an RTP packet provided the version is