# HG changeset patch # User mru # Date 1263232920 0 # Node ID b4aca3bfff0f6cea0255e3ea8ce3173a6dc20609 # Parent 177ebc61c3d6e91c6ca8a61b930889a31142865c AAC: escape_sequence is 21 bits max The maximum length of escape_sequence is 21 bits, so adjust limit in code to match this. Also fix the comment. diff -r 177ebc61c3d6 -r b4aca3bfff0f aac.c --- a/aac.c Mon Jan 11 16:41:03 2010 +0000 +++ b/aac.c Mon Jan 11 18:02:00 2010 +0000 @@ -942,9 +942,9 @@ if (vq_ptr[j] == 64.0f) { int n = 4; /* The total length of escape_sequence must be < 22 bits according - to the specification (i.e. max is 11111111110xxxxxxxxxx). */ - while (get_bits1(gb) && n < 15) n++; - if (n == 15) { + to the specification (i.e. max is 111111110xxxxxxxxxxxx). */ + while (get_bits1(gb) && n < 13) n++; + if (n == 13) { av_log(ac->avccontext, AV_LOG_ERROR, "error in spectral data, ESC overflow\n"); return -1; }