rawbaseparse: Assert that frame size is > 0

We would later divide by zero otherwise, and generally won't do the
right thing.

CID 1401383
This commit is contained in:
Sebastian Dröge 2017-02-28 15:51:00 +02:00
parent 9a62892428
commit 6eef6bd1f5

View file

@ -525,6 +525,7 @@ 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);
in_size = gst_buffer_get_size (frame->buffer);