Mercurial > libavcodec.hg
comparison aac.c @ 9053:c6bd71120376 libavcodec
Re-indent after last commit.
author | alexc |
---|---|
date | Thu, 26 Feb 2009 01:54:16 +0000 |
parents | 54973ad4b7cf |
children | 0e2f21d65473 |
comparison
equal
deleted
inserted
replaced
9052:54973ad4b7cf | 9053:c6bd71120376 |
---|---|
803 if (vq_ptr[1]) coef[coef_tmp_idx + 1] = sign_lookup[get_bits1(gb)]; | 803 if (vq_ptr[1]) coef[coef_tmp_idx + 1] = sign_lookup[get_bits1(gb)]; |
804 if (dim == 4) { | 804 if (dim == 4) { |
805 if (vq_ptr[2]) coef[coef_tmp_idx + 2] = sign_lookup[get_bits1(gb)]; | 805 if (vq_ptr[2]) coef[coef_tmp_idx + 2] = sign_lookup[get_bits1(gb)]; |
806 if (vq_ptr[3]) coef[coef_tmp_idx + 3] = sign_lookup[get_bits1(gb)]; | 806 if (vq_ptr[3]) coef[coef_tmp_idx + 3] = sign_lookup[get_bits1(gb)]; |
807 } | 807 } |
808 if (cur_band_type == ESC_BT) { | 808 if (cur_band_type == ESC_BT) { |
809 for (j = 0; j < 2; j++) { | 809 for (j = 0; j < 2; j++) { |
810 if (vq_ptr[j] == 64.0f) { | 810 if (vq_ptr[j] == 64.0f) { |
811 int n = 4; | 811 int n = 4; |
812 /* The total length of escape_sequence must be < 22 bits according | 812 /* The total length of escape_sequence must be < 22 bits according |
813 to the specification (i.e. max is 11111111110xxxxxxxxxx). */ | 813 to the specification (i.e. max is 11111111110xxxxxxxxxx). */ |
814 while (get_bits1(gb) && n < 15) n++; | 814 while (get_bits1(gb) && n < 15) n++; |
815 if(n == 15) { | 815 if(n == 15) { |
816 av_log(ac->avccontext, AV_LOG_ERROR, "error in spectral data, ESC overflow\n"); | 816 av_log(ac->avccontext, AV_LOG_ERROR, "error in spectral data, ESC overflow\n"); |
817 return -1; | 817 return -1; |
818 } | 818 } |
819 n = (1<<n) + get_bits(gb, n); | 819 n = (1<<n) + get_bits(gb, n); |
820 coef[coef_tmp_idx + j] *= cbrtf(n) * n; | 820 coef[coef_tmp_idx + j] *= cbrtf(n) * n; |
821 }else | 821 }else |
822 coef[coef_tmp_idx + j] *= vq_ptr[j]; | 822 coef[coef_tmp_idx + j] *= vq_ptr[j]; |
823 } | |
824 }else | |
825 { | |
826 coef[coef_tmp_idx ] *= vq_ptr[0]; | |
827 coef[coef_tmp_idx + 1] *= vq_ptr[1]; | |
828 if (dim == 4) { | |
829 coef[coef_tmp_idx + 2] *= vq_ptr[2]; | |
830 coef[coef_tmp_idx + 3] *= vq_ptr[3]; | |
831 } | |
823 } | 832 } |
824 }else | |
825 { | |
826 coef[coef_tmp_idx ] *= vq_ptr[0]; | |
827 coef[coef_tmp_idx + 1] *= vq_ptr[1]; | |
828 if (dim == 4) { | |
829 coef[coef_tmp_idx + 2] *= vq_ptr[2]; | |
830 coef[coef_tmp_idx + 3] *= vq_ptr[3]; | |
831 } | |
832 } | |
833 }else { | 833 }else { |
834 coef[coef_tmp_idx ] = vq_ptr[0]; | 834 coef[coef_tmp_idx ] = vq_ptr[0]; |
835 coef[coef_tmp_idx + 1] = vq_ptr[1]; | 835 coef[coef_tmp_idx + 1] = vq_ptr[1]; |
836 if (dim == 4) { | 836 if (dim == 4) { |
837 coef[coef_tmp_idx + 2] = vq_ptr[2]; | 837 coef[coef_tmp_idx + 2] = vq_ptr[2]; |