[FFmpeg-soc] [soc]: r5500 - aac-sbr/aacsbr.c
alexc
subversion at mplayerhq.hu
Sun Dec 6 23:48:41 CET 2009
Author: alexc
Date: Sun Dec 6 23:48:41 2009
New Revision: 5500
Log:
Fix an off by one error. The phi matrix lacks column zero of the spec's \phi and in the spec j is indexed from 1 <= j < 3.
Modified:
aac-sbr/aacsbr.c
Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c Sun Dec 6 23:48:39 2009 (r5499)
+++ aac-sbr/aacsbr.c Sun Dec 6 23:48:41 2009 (r5500)
@@ -1094,7 +1094,7 @@ static void sbr_hf_inverse_filter(float
for (i = 0; i < 3; i++) {
for (j = 0; j < 2; j++) {
unsigned int idxtmp1 = ENVELOPE_ADJUSTMENT_OFFSET - i;
- unsigned int idxtmp2 = ENVELOPE_ADJUSTMENT_OFFSET - j;
+ unsigned int idxtmp2 = ENVELOPE_ADJUSTMENT_OFFSET - (j + 1);
phi[i][j][0] = 0.0f;
phi[i][j][1] = 0.0f;
More information about the FFmpeg-soc
mailing list