codecparsers: av1: uint8 range is not enough for av1_bitstreamfn_ns

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1464>
This commit is contained in:
He Junyan 2020-08-25 15:25:56 +08:00 committed by Víctor Manuel Jáquez Leal
parent 900bd06939
commit 8f55c9d6d2

View file

@ -293,8 +293,8 @@ av1_bitstreamfn_su (GstBitReader * br, guint8 n, GstAV1ParserResult * retval)
/* 4.10.7
*
* Unsigned encoded integer with maximum number of values n */
static guint8
av1_bitstreamfn_ns (GstBitReader * br, guint8 n, GstAV1ParserResult * retval)
static guint32
av1_bitstreamfn_ns (GstBitReader * br, guint32 n, GstAV1ParserResult * retval)
{
gint w, m, v;
gint extra_bit;