From 6eef6bd1f5a52e500d484eded78d76943c941293 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Tue, 28 Feb 2017 15:51:00 +0200 Subject: rawbaseparse: Assert that frame size is > 0 We would later divide by zero otherwise, and generally won't do the right thing. CID 1401383 --- gst/rawparse/gstrawbaseparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/rawparse/gstrawbaseparse.c b/gst/rawparse/gstrawbaseparse.c index b41e4fa1c..2e7e70513 100644 --- a/gst/rawparse/gstrawbaseparse.c +++ b/gst/rawparse/gstrawbaseparse.c @@ -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); -- cgit v1.2.3