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)
committerAlessandro Decina <alessandro.decina@collabora.co.uk>
Tue, 5 Jul 2011 09:19:36 +0000 (11:19 +0200)
commitafbbdfcea1daa61467db3eb511636e5de75a07a8
tree0161130d9263ebbf0482eafdacb557754bfb97b0
parentb49f36cc0e3057e7ddacd4b93c6e5435ffda5f17
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