comparison aac.c @ 7638:80b097820403 libavcodec

Reindent after last commit
author superdump
date Thu, 21 Aug 2008 12:13:22 +0000
parents 1fd8e319e8b6
children 258eb30e6f7d
comparison
equal deleted inserted replaced
7637:1fd8e319e8b6 7638:80b097820403
616 const int tns_max_order = is8 ? 7 : ac->m4ac.object_type == AOT_AAC_MAIN ? 20 : 12; 616 const int tns_max_order = is8 ? 7 : ac->m4ac.object_type == AOT_AAC_MAIN ? 20 : 12;
617 for (w = 0; w < ics->num_windows; w++) { 617 for (w = 0; w < ics->num_windows; w++) {
618 if ((tns->n_filt[w] = get_bits(gb, 2 - is8))) { 618 if ((tns->n_filt[w] = get_bits(gb, 2 - is8))) {
619 coef_res = get_bits1(gb); 619 coef_res = get_bits1(gb);
620 620
621 for (filt = 0; filt < tns->n_filt[w]; filt++) { 621 for (filt = 0; filt < tns->n_filt[w]; filt++) {
622 int tmp2_idx; 622 int tmp2_idx;
623 tns->length[w][filt] = get_bits(gb, 6 - 2*is8); 623 tns->length[w][filt] = get_bits(gb, 6 - 2*is8);
624 624
625 if ((tns->order[w][filt] = get_bits(gb, 5 - 2*is8)) > tns_max_order) { 625 if ((tns->order[w][filt] = get_bits(gb, 5 - 2*is8)) > tns_max_order) {
626 av_log(ac->avccontext, AV_LOG_ERROR, "TNS filter order %d is greater than maximum %d.", 626 av_log(ac->avccontext, AV_LOG_ERROR, "TNS filter order %d is greater than maximum %d.",
627 tns->order[w][filt], tns_max_order); 627 tns->order[w][filt], tns_max_order);
628 tns->order[w][filt] = 0; 628 tns->order[w][filt] = 0;
629 return -1; 629 return -1;
630 }
631 tns->direction[w][filt] = get_bits1(gb);
632 coef_compress = get_bits1(gb);
633 coef_len = coef_res + 3 - coef_compress;
634 tmp2_idx = 2*coef_compress + coef_res;
635
636 for (i = 0; i < tns->order[w][filt]; i++)
637 tns->coef[w][filt][i] = tns_tmp2_map[tmp2_idx][get_bits(gb, coef_len)];
630 } 638 }
631 tns->direction[w][filt] = get_bits1(gb);
632 coef_compress = get_bits1(gb);
633 coef_len = coef_res + 3 - coef_compress;
634 tmp2_idx = 2*coef_compress + coef_res;
635
636 for (i = 0; i < tns->order[w][filt]; i++)
637 tns->coef[w][filt][i] = tns_tmp2_map[tmp2_idx][get_bits(gb, coef_len)];
638 }
639 } 639 }
640 } 640 }
641 return 0; 641 return 0;
642 } 642 }
643 643