From: Nicolas Huet Date: Wed, 4 Mar 2015 09:27:17 +0000 (+0100) Subject: aacparse: fix LOAS parsing issue X-Git-Tag: 1.6.0~538 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ead23a14a1b85e785d5ba0a3327764c6479afc9;p=platform%2Fupstream%2Fgst-plugins-good.git aacparse: fix LOAS parsing issue Fix missing index in syncword searching https://bugzilla.gnome.org/show_bug.cgi?id=745585 --- diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c index 415e665..04cefe2 100644 --- a/gst/audioparsers/gstaacparse.c +++ b/gst/audioparsers/gstaacparse.c @@ -809,7 +809,7 @@ gst_aac_parse_detect_stream (GstAacParse * aacparse, for (i = 0; i < avail - 4; i++) { if (((data[i] == 0xff) && ((data[i + 1] & 0xf6) == 0xf0)) || - ((data[0] == 0x56) && ((data[1] & 0xe0) == 0xe0)) || + ((data[i] == 0x56) && ((data[i + 1] & 0xe0) == 0xe0)) || strncmp ((char *) data + i, "ADIF", 4) == 0) { GST_DEBUG_OBJECT (aacparse, "Found signature at offset %u", i); found = TRUE;