Commit 6eef6bd1 authored by Sebastian Dröge's avatar Sebastian Dröge

rawbaseparse: Assert that frame size is > 0

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

CID 1401383
parent 9a628924
......@@ -525,6 +525,7 @@ gst_raw_base_parse_handle_frame (GstBaseParse * parse,
frame_size =
klass->get_config_frame_size (raw_base_parse,
g_assert (frame_size > 0);
in_size = gst_buffer_get_size (frame->buffer);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment