mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
h264parse: Fix assertion when encountering an invalid NALU
Error out properly instead. https://bugzilla.gnome.org/show_bug.cgi?id=775130
This commit is contained in:
parent
d58f668ece
commit
47bf425cba
1 changed files with 4 additions and 2 deletions
|
@ -1131,8 +1131,10 @@ gst_h264_parse_handle_frame (GstBaseParse * parse,
|
|||
goto skip;
|
||||
break;
|
||||
default:
|
||||
g_assert_not_reached ();
|
||||
break;
|
||||
/* should not really occur either */
|
||||
GST_ELEMENT_ERROR (h264parse, STREAM, FORMAT,
|
||||
("Error parsing H.264 stream"), ("Invalid H.264 stream"));
|
||||
goto invalid_stream;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue