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:
5e50cd5
)
mpegtspacketizer: Skip packets with corrupted length
author
Edward Hervey
<edward@collabora.com>
Fri, 11 Oct 2013 08:32:52 +0000
(10:32 +0200)
committer
Edward Hervey
<edward@collabora.com>
Fri, 11 Oct 2013 08:34:17 +0000
(10:34 +0200)
This is similar to what we do for packets with payload
gst/mpegtsdemux/mpegtspacketizer.c
patch
|
blob
|
history
diff --git
a/gst/mpegtsdemux/mpegtspacketizer.c
b/gst/mpegtsdemux/mpegtspacketizer.c
index
49a36eb
..
b11a964
100644
(file)
--- a/
gst/mpegtsdemux/mpegtspacketizer.c
+++ b/
gst/mpegtsdemux/mpegtspacketizer.c
@@
-315,6
+315,11
@@
mpegts_packetizer_parse_adaptation_field_control (MpegTSPacketizer2 *
if ((packet->scram_afc_cc & 0x30) == 0x20) {
/* no payload, adaptation field of 183 bytes */
+ if (length > 183) {
+ GST_WARNING ("PID %d afc == 0x%02x and length %d > 183",
+ packet->pid, packet->scram_afc_cc & 0x30, length);
+ return FALSE;
+ }
if (length != 183) {
GST_WARNING ("PID %d afc == 0x%02x and length %d != 183",
packet->pid, packet->scram_afc_cc & 0x30, length);