Commit cb4ccecc authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

h265parse: Fix assertion when encountering an invalid NALU

Error out properly instead.

https://bugzilla.gnome.org/show_bug.cgi?id=775130
parent 47bf425c
......@@ -883,8 +883,10 @@ gst_h265_parse_handle_frame (GstBaseParse * parse,
*skipsize = size - 3;
goto skip;
default:
g_assert_not_reached ();
break;
/* should not really occur either */
GST_ELEMENT_ERROR (h265parse, STREAM, FORMAT,
("Error parsing H.265 stream"), ("Invalid H.265 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