projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6fe51a
)
nalutils: Fix Exponential-Golomb 'ue' parsing
author
Edward Hervey
<edward@centricular.com>
Tue, 2 Jan 2018 14:23:00 +0000
(15:23 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Tue, 2 Jan 2018 14:37:32 +0000
(15:37 +0100)
The algorithm we use only supports up to a maximum exponent of 31
(for a maximum resulting of 2**32 -1)
CID #1427097
gst-libs/gst/codecparsers/nalutils.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/codecparsers/nalutils.c
b/gst-libs/gst/codecparsers/nalutils.c
index
d73e26e
..
6f9bc3a
100644
(file)
--- 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 > 3
2
))
+ if (G_UNLIKELY (i > 3
1
))
return FALSE;
if (G_UNLIKELY (!nal_reader_get_bits_uint32 (nr, &value, i)))