libs: decoder: h264: check nalu validity in parser info finalize

https://bugzilla.gnome.org/show_bug.cgi?id=732266

Signed-off-by: Sreerenj Balachandran <sreerenj.balachandran@intel.com>
This commit is contained in:
Orestis Floros 2017-08-28 17:28:04 -07:00 committed by Sreerenj Balachandran
parent 3bfb29e4c2
commit a016aa181b

View file

@ -100,6 +100,9 @@ struct _GstVaapiParserInfoH264
static void
gst_vaapi_parser_info_h264_finalize (GstVaapiParserInfoH264 * pi)
{
if (!pi->nalu.valid)
return;
switch (pi->nalu.type) {
case GST_H264_NAL_SPS:
case GST_H264_NAL_SUBSET_SPS: