summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2018-01-02 15:23:00 +0100
committerEdward Hervey <bilboed@bilboed.com>2018-01-02 15:37:32 +0100
commit7ecb3dc91794984723b90cb29b4732aa671dd848 (patch)
tree532b320c7a4638cb0fef581a6b079d642fb4e230 /gst-libs
parente6fe51a3accd22d23a51c3a8c647e2f72ea2bbba (diff)
downloadgstreamer-plugins-bad-7ecb3dc91794984723b90cb29b4732aa671dd848.tar.gz
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
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/nalutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/nalutils.c b/gst-libs/gst/codecparsers/nalutils.c
index d73e26e6f..6f9bc3a36 100644
--- a/gst-libs/gst/codecparsers/nalutils.c
+++ b/gst-libs/gst/codecparsers/nalutils.c
@@ -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)))