mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
rawvideoparse: fix assert on large width/height in caps
https://bugzilla.gnome.org/show_bug.cgi?id=776446
This commit is contained in:
parent
0bb82827f7
commit
1ad791792c
1 changed files with 6 additions and 1 deletions
|
@ -525,7 +525,12 @@ gst_raw_base_parse_handle_frame (GstBaseParse * parse,
|
|||
frame_size =
|
||||
klass->get_config_frame_size (raw_base_parse,
|
||||
GST_RAW_BASE_PARSE_CONFIG_CURRENT);
|
||||
g_assert (frame_size > 0);
|
||||
if (frame_size <= 0) {
|
||||
GST_ELEMENT_ERROR (parse, STREAM, FORMAT,
|
||||
("Non strictly positive frame size"), (NULL));
|
||||
flow_ret = GST_FLOW_ERROR;
|
||||
goto error_locked;
|
||||
}
|
||||
|
||||
in_size = gst_buffer_get_size (frame->buffer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue