mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/utils.go: using BigEndian.Uint16 in get16
This commit is contained in:
parent
2d7a400b3e
commit
9a02d295fe
|
@ -95,7 +95,7 @@ func (b *byteStream) get8() int {
|
|||
}
|
||||
|
||||
func (b *byteStream) get16() int {
|
||||
v := int(b.bytes[b.i])<<8 | int(b.bytes[b.i+1])
|
||||
v := int(binary.BigEndian.Uint16(b.bytes[b.i:]))
|
||||
b.i += 2
|
||||
return v
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue