summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-11-28 20:05:02 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-11-28 20:05:02 +0200
commit57bb47f3f79b9814e77b1da0f84cf50b7f1c1732 (patch)
tree400e8b77a40b8732a484b7ac1b9131c59f8033b4
parent911a6083c838ec3cddfb6f7011636fbb8e268451 (diff)
downloadgstreamer-plugins-bad-57bb47f3f79b9814e77b1da0f84cf50b7f1c1732.tar.gz
mpegtssection: Fix off-by-one in PMT parsing
-rw-r--r--gst-libs/gst/mpegts/gstmpegtssection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/mpegts/gstmpegtssection.c b/gst-libs/gst/mpegts/gstmpegtssection.c
index 02038a76a..5222024f4 100644
--- a/gst-libs/gst/mpegts/gstmpegtssection.c
+++ b/gst-libs/gst/mpegts/gstmpegtssection.c
@@ -716,7 +716,7 @@ _parse_pmt (GstMpegtsSection * section)
}
/* Section length was longer than the actual content of the PMT */
- if (data <= end - 4)
+ if (data < end - 4)
goto error;
/* Ensure we did not read after the end of our array */