mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
h265parse: 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
47bf425cba
commit
cb4ccecc97
1 changed files with 4 additions and 2 deletions
|
@ -883,8 +883,10 @@ gst_h265_parse_handle_frame (GstBaseParse * parse,
|
||||||
*skipsize = size - 3;
|
*skipsize = size - 3;
|
||||||
goto skip;
|
goto skip;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
/* should not really occur either */
|
||||||
break;
|
GST_ELEMENT_ERROR (h265parse, STREAM, FORMAT,
|
||||||
|
("Error parsing H.265 stream"), ("Invalid H.265 stream"));
|
||||||
|
goto invalid_stream;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue