mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
nalutils: Fix Exponential-Golomb 'ue' parsing
The algorithm we use only supports up to a maximum exponent of 31 (for a maximum resulting of 2**32 -1) CID #1427097
This commit is contained in:
parent
e6fe51a3ac
commit
7ecb3dc917
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ nal_reader_get_ue (NalReader * nr, guint32 * val)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
if (G_UNLIKELY (i > 32))
|
||||
if (G_UNLIKELY (i > 31))
|
||||
return FALSE;
|
||||
|
||||
if (G_UNLIKELY (!nal_reader_get_bits_uint32 (nr, &value, i)))
|
||||
|
|
Loading…
Reference in a new issue