[0.11] gst-plugins-good: dcaparse: use right variable

Tim Müller tpm at kemper.freedesktop.org
Tue Jan 3 06:44:29 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 03408a475cb5b059702e2a1f702d47b54945f620
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=03408a475cb5b059702e2a1f702d47b54945f620

Author: Matej Knopp <matej.knopp at gmail.com>
Date:   Sat Dec 31 23:33:33 2011 -0500

dcaparse: use right variable

Fixes use of unitialized variable.

https://bugzilla.gnome.org/show_bug.cgi?id=667085

---

 gst/audioparsers/gstdcaparse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/audioparsers/gstdcaparse.c b/gst/audioparsers/gstdcaparse.c
index 7c11e0b..37f8a87 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)) {



More information about the gstreamer-commits mailing list