mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
faad: fix compiler warning
gstfaad.c: In function 'gst_faad_parse': gstfaad.c:615:11: error: 'len' may be used uninitialized in this function
This commit is contained in:
parent
c9f7e9b26d
commit
e37634e9f9
1 changed files with 7 additions and 4 deletions
|
@ -556,7 +556,7 @@ gst_faad_sync (GstFaad * faad, const guint8 * data, guint size, gboolean next,
|
|||
guint n = 0;
|
||||
gint snc;
|
||||
gboolean ret = FALSE;
|
||||
guint len;
|
||||
guint len = 0;
|
||||
|
||||
GST_LOG_OBJECT (faad, "Finding syncpoint");
|
||||
|
||||
|
@ -611,11 +611,14 @@ gst_faad_sync (GstFaad * faad, const guint8 * data, guint size, gboolean next,
|
|||
}
|
||||
|
||||
exit:
|
||||
*off = n;
|
||||
*length = len;
|
||||
|
||||
if (!ret)
|
||||
*off = n;
|
||||
|
||||
if (ret) {
|
||||
*length = len;
|
||||
} else {
|
||||
GST_LOG_OBJECT (faad, "Found no syncpoint");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue