mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
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:
parent
9a62892428
commit
6eef6bd1f5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue