Commit 47bf425c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

h264parse: Fix assertion when encountering an invalid NALU

Error out properly instead.

https://bugzilla.gnome.org/show_bug.cgi?id=775130
parent d58f668e
...@@ -1131,8 +1131,10 @@ gst_h264_parse_handle_frame (GstBaseParse * parse, ...@@ -1131,8 +1131,10 @@ gst_h264_parse_handle_frame (GstBaseParse * parse,
goto skip; goto skip;
break; break;
default: default:
g_assert_not_reached (); /* should not really occur either */
break; GST_ELEMENT_ERROR (h264parse, STREAM, FORMAT,
("Error parsing H.264 stream"), ("Invalid H.264 stream"));
goto invalid_stream;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment