aacparse: fix LOAS parsing issue

Fix missing index in syncword searching

https://bugzilla.gnome.org/show_bug.cgi?id=745585
This commit is contained in:
Nicolas Huet 2015-03-04 10:27:17 +01:00 committed by Thiago Santos
parent c194f2de12
commit 5ead23a14a

View file

@ -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;