From 430e56e22bd477be5954223d1092a48bf721e870 Mon Sep 17 00:00:00 2001 From: Saxon Date: Mon, 29 Jul 2019 12:35:01 +0930 Subject: [PATCH] codec/h264/h264dec: fixed readBits return type --- codec/h264/h264dec/parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/h264/h264dec/parse.go b/codec/h264/h264dec/parse.go index 68abe8c6..0763be27 100644 --- a/codec/h264/h264dec/parse.go +++ b/codec/h264/h264dec/parse.go @@ -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