# HG changeset patch # User superdump # Date 1221229969 0 # Node ID 77030651ddd0f77eee5c4ddd434a75ebea574c4e # Parent 2bfde5b45e015be335a5b3ac893ab665b07fa6d9 Only read some of TNS bitstream data in the case that the TNS filter order is non-zero as per the specification. Patch by Alex Converse (alex converse gmail com) Fixes another issue pertaining to issue632 diff -r 2bfde5b45e01 -r 77030651ddd0 aac.c --- a/aac.c Thu Sep 11 19:10:26 2008 +0000 +++ b/aac.c Fri Sep 12 14:32:49 2008 +0000 @@ -629,6 +629,7 @@ tns->order[w][filt] = 0; return -1; } + if (tns->order[w][filt]) { tns->direction[w][filt] = get_bits1(gb); coef_compress = get_bits1(gb); coef_len = coef_res + 3 - coef_compress; @@ -636,6 +637,7 @@ for (i = 0; i < tns->order[w][filt]; i++) tns->coef[w][filt][i] = tns_tmp2_map[tmp2_idx][get_bits(gb, coef_len)]; + } } } }