From 03408a475cb5b059702e2a1f702d47b54945f620 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Sat, 31 Dec 2011 23:33:33 -0500 Subject: [PATCH] dcaparse: use right variable Fixes use of unitialized variable. https://bugzilla.gnome.org/show_bug.cgi?id=667085 --- gst/audioparsers/gstdcaparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c index 7c11e0b739..37f8a87bd4 100644 --- a/gst/audioparsers/gstdcaparse.c +++ b/gst/audioparsers/gstdcaparse.c @@ -333,7 +333,7 @@ gst_dca_parse_check_valid_frame (GstBaseParse * parse, if (G_LIKELY (parser_in_sync && dcaparse->last_sync != 0)) { off = gst_byte_reader_masked_scan_uint32 (&r, 0xffffffff, - dcaparse->last_sync, 0, size); + dcaparse->last_sync, 0, bufsize); } if (G_UNLIKELY (off < 0)) {