Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
parsers: AAC - fix startcode check, fixes #3383
  • Loading branch information
perexg committed Jan 11, 2016
1 parent 20d3c7d commit bd36886
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/parsers/parsers.c
Expand Up @@ -288,7 +288,7 @@ parse_aac(service_t *t, elementary_stream_t *st, const uint8_t *data,
while((l = st->es_buf.sb_ptr - p) > 3) {
const uint8_t *d = st->es_buf.sb_data + p;
/* Startcode check */
if(d[0] == 0 || d[1] == 0 || d[2] == 1) {
if(d[0] == 0 && d[1] == 0 && d[2] == 1) {
p += 4;
/* LATM */
} else if(latm != 0 && d[0] == 0x56 && (d[1] & 0xe0) == 0xe0) {
Expand Down Expand Up @@ -318,7 +318,6 @@ parse_aac(service_t *t, elementary_stream_t *st, const uint8_t *data,
break;

if (muxlen < 7) {
tvhtrace("parser", "AAC/ATDS skip byte %02x", d[0]);
p++;
continue;
}
Expand Down

0 comments on commit bd36886

Please sign in to comment.