Mercurial > libavcodec.hg
comparison dca.c @ 5974:ae05d6d12f12 libavcodec
Use the correct "const float *" type for variable instead of casting const away.
author | reimar |
---|---|
date | Sun, 02 Dec 2007 21:12:43 +0000 |
parents | abf90ea2c392 |
children | 6dd429a5d0be |
comparison
equal
deleted
inserted
replaced
5973:94f4e36639ae | 5974:ae05d6d12f12 |
---|---|
644 | 644 |
645 static void qmf_32_subbands(DCAContext * s, int chans, | 645 static void qmf_32_subbands(DCAContext * s, int chans, |
646 float samples_in[32][8], float *samples_out, | 646 float samples_in[32][8], float *samples_out, |
647 float scale, float bias) | 647 float scale, float bias) |
648 { | 648 { |
649 float *prCoeff; | 649 const float *prCoeff; |
650 int i, j, k; | 650 int i, j, k; |
651 float praXin[33], *raXin = &praXin[1]; | 651 float praXin[33], *raXin = &praXin[1]; |
652 | 652 |
653 float *subband_fir_hist = s->subband_fir_hist[chans]; | 653 float *subband_fir_hist = s->subband_fir_hist[chans]; |
654 float *subband_fir_hist2 = s->subband_fir_noidea[chans]; | 654 float *subband_fir_hist2 = s->subband_fir_noidea[chans]; |
657 | 657 |
658 praXin[0] = 0.0; | 658 praXin[0] = 0.0; |
659 | 659 |
660 /* Select filter */ | 660 /* Select filter */ |
661 if (!s->multirate_inter) /* Non-perfect reconstruction */ | 661 if (!s->multirate_inter) /* Non-perfect reconstruction */ |
662 prCoeff = (float *) fir_32bands_nonperfect; | 662 prCoeff = fir_32bands_nonperfect; |
663 else /* Perfect reconstruction */ | 663 else /* Perfect reconstruction */ |
664 prCoeff = (float *) fir_32bands_perfect; | 664 prCoeff = fir_32bands_perfect; |
665 | 665 |
666 /* Reconstructed channel sample index */ | 666 /* Reconstructed channel sample index */ |
667 for (subindex = 0; subindex < 8; subindex++) { | 667 for (subindex = 0; subindex < 8; subindex++) { |
668 float t1, t2, sum[16], diff[16]; | 668 float t1, t2, sum[16], diff[16]; |
669 | 669 |