h264parse: gracefully handle truncated input NAL units
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 23 May 2011 12:41:27 +0000 (14:41 +0200)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Mon, 23 May 2011 14:57:25 +0000 (16:57 +0200)
commit409a51bcea4a76edd28e3258f29a3328541059a7
tree806436a3fa523e6c526642023a11656842def40f
parent5616efb0f8868d9ffb57a308ccf42d4a4df8ea66
h264parse: gracefully handle truncated input NAL units

Rather than assert'ing in such case, emit warning if the length of a NAL unit
is less than expected 2 and discard it.

Based on patch by Benjamin M. Schwartz <bens@alum.mit.edu>

Fixes #650416.
gst/videoparsers/gsth264parse.c