mirror of https://bitbucket.org/ausocean/av.git
codec/mjpeg/utils.go: using BigEndian.Uint16 in get16
This commit is contained in:
parent
7ee35f650f
commit
39c66bdfd6
|
@ -95,7 +95,7 @@ func (b *byteStream) get8() int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *byteStream) get16() 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
|
b.i += 2
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue