mpegtssection: Fix off-by-one in PMT parsing

This commit is contained in:
Sebastian Dröge 2016-11-28 20:05:02 +02:00
parent 911a6083c8
commit 57bb47f3f7

View file

@ -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 */