diff options
Diffstat (limited to 'ext/faad/gstfaad.c')
-rw-r--r-- | ext/faad/gstfaad.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/faad/gstfaad.c b/ext/faad/gstfaad.c index cc7276027..252e9529d 100644 --- a/ext/faad/gstfaad.c +++ b/ext/faad/gstfaad.c @@ -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) + if (ret) { + *length = len; + } else { GST_LOG_OBJECT (faad, "Found no syncpoint"); + } return ret; } |