codec/h264/h264dec: fixed readBits return type

This commit is contained in:
Saxon 2019-07-29 12:35:01 +09:30
parent 75a6df5da5
commit 430e56e22b
1 changed files with 2 additions and 2 deletions

View File

@ -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
// 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 {
return 0
}
var b uint64
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