projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74a1a70
)
rtpvp8: Reject unknown bitstream versions
author
Olivier Crête
<olivier.crete@collabora.com>
Tue, 12 Jul 2011 22:03:53 +0000
(18:03 -0400)
committer
Tim-Philipp Müller
<tim@centricular.net>
Thu, 1 Nov 2012 20:53:47 +0000
(20:53 +0000)
gst/rtp/gstrtpvp8pay.c
patch
|
blob
|
history
diff --git
a/gst/rtp/gstrtpvp8pay.c
b/gst/rtp/gstrtpvp8pay.c
index b54ec28985c8679685230b2625dacdc0e48760b0..c6c773dcafbe99cb6523ebab890fb665b185a7e5 100644
(file)
--- a/
gst/rtp/gstrtpvp8pay.c
+++ b/
gst/rtp/gstrtpvp8pay.c
@@
-141,6
+141,11
@@
gst_rtp_vp8_pay_parse_frame (GstRtpVP8Pay * self, GstBuffer * buffer)
self->is_keyframe = keyframe = ((data[0] & 0x1) == 0);
version = (data[0] >> 1) & 0x7;
+ if (G_UNLIKELY (version > 3)) {
+ GST_ERROR_OBJECT (self, "Unknown VP8 version %u", version);
+ goto error;
+ }
+
/* keyframe, version and show_frame use 5 bits */
header_size = data[2] << 11 | data[1] << 3 | (data[0] >> 5);