mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
baseparse: ensure non-empty candidate frames
This commit is contained in:
parent
2e76193c56
commit
fd064765a7
1 changed files with 2 additions and 2 deletions
|
@ -1958,7 +1958,7 @@ gst_base_parse_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
GstBuffer *outbuf = NULL;
|
GstBuffer *outbuf = NULL;
|
||||||
GstBuffer *tmpbuf = NULL;
|
GstBuffer *tmpbuf = NULL;
|
||||||
guint fsize = 0;
|
guint fsize = 1;
|
||||||
gint skip = -1;
|
gint skip = -1;
|
||||||
const guint8 *data;
|
const guint8 *data;
|
||||||
guint old_min_size = 0, min_size, av;
|
guint old_min_size = 0, min_size, av;
|
||||||
|
@ -2293,7 +2293,7 @@ gst_base_parse_scan_frame (GstBaseParse * parse, GstBaseParseClass * klass,
|
||||||
{
|
{
|
||||||
GstBuffer *buffer, *outbuf;
|
GstBuffer *buffer, *outbuf;
|
||||||
GstFlowReturn ret = GST_FLOW_OK;
|
GstFlowReturn ret = GST_FLOW_OK;
|
||||||
guint fsize = 0, min_size, old_min_size = 0;
|
guint fsize = 1, min_size, old_min_size = 0;
|
||||||
gint skip = 0;
|
gint skip = 0;
|
||||||
|
|
||||||
g_return_val_if_fail (frame != NULL, GST_FLOW_ERROR);
|
g_return_val_if_fail (frame != NULL, GST_FLOW_ERROR);
|
||||||
|
|
Loading…
Reference in a new issue