mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
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:
parent
3bfb29e4c2
commit
a016aa181b
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue