mirror of https://bitbucket.org/ausocean/av.git
codec/h264/h264dec: fixed readBits return type
This commit is contained in:
parent
75a6df5da5
commit
430e56e22b
|
@ -51,13 +51,13 @@ func newFieldReader(br *bits.BitReader) fieldReader {
|
||||||
|
|
||||||
// readBitsInt returns an int from reading n bits from br. If we have an error
|
// readBitsInt returns an int from reading n bits from br. If we have an error
|
||||||
// already, we do not continue with the read.
|
// already, we do not continue with the read.
|
||||||
func (r fieldReader) readBits(n int) int {
|
func (r fieldReader) readBits(n int) uint64 {
|
||||||
if r.e != nil {
|
if r.e != nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
var b uint64
|
var b uint64
|
||||||
b, r.e = r.br.ReadBits(n)
|
b, r.e = r.br.ReadBits(n)
|
||||||
return int(b)
|
return b
|
||||||
}
|
}
|
||||||
|
|
||||||
// readUe parses a syntax element of ue(v) descriptor, i.e. an unsigned integer
|
// readUe parses a syntax element of ue(v) descriptor, i.e. an unsigned integer
|
||||||
|
|
Loading…
Reference in New Issue