mpegtspacketizer: catch section lengths extending past the buffer length
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 27 Feb 2012 12:45:29 +0000 (09:45 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 27 Feb 2012 12:57:45 +0000 (09:57 -0300)
commit5c2e6dc5125451e2b7b98bf0fc8222e880aeaa65
treea0e60a5c401ed6c9c72966545b8d87b1b88faeb9
parent58a210e3d33498454c41158a1106955705c23773
mpegtspacketizer: catch section lengths extending past the buffer length

This is probably the cause for an occasional crash while streaming
MPEG. Blind fix after staring at the code and following logic, so
may or may not fix the issue, I cannot test.

(Port of 4275a70cb55d375afa702917f7359ec117ed49d4 from mpegdemux)
gst/mpegtsdemux/mpegtspacketizer.c