mpegtspacketizer: Fix off-by-one error
authorEdward Hervey <edward@centricular.com>
Thu, 26 Sep 2019 15:13:30 +0000 (17:13 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 31 Oct 2019 12:31:27 +0000 (12:31 +0000)
commit878edacc0541734daf0e9fe38d2a359fb9931881
tree3cd3defed21fa56c249cda5f393eaae8be749086
parent10d4c0c511532498c00f8461fbcb836f6c72a147
mpegtspacketizer: Fix off-by-one error

This went un-noticed for 6 years :( The issue is that for short
sections (without subtables and CRC), we would always fail when
checking whether we had enough data or not and then default to the
long section checking.

Use the long section checking would then cause interesting side-effects
for short sections (such as believing they were already seen and therefore
would be dropped/ignored).
gst/mpegtsdemux/mpegtspacketizer.c