diff options
author | Nicolas Huet <nicolas.huet@parrot.com> | 2015-03-04 10:27:17 +0100 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-03-06 14:54:22 -0300 |
commit | 327515a35f03d4a315dada57cb20c97e7071718c (patch) | |
tree | d24833745d0797ce11c70224c62c9932249df6ed | |
parent | 7833fafbdd48bb8a75dfe78caaf8950eeeb933b7 (diff) |
aacparse: fix LOAS parsing issue
Fix missing index in syncword searching
https://bugzilla.gnome.org/show_bug.cgi?id=745585
-rw-r--r-- | gst/audioparsers/gstaacparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/audioparsers/gstaacparse.c b/gst/audioparsers/gstaacparse.c index 415e665c9..04cefe2e7 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; |