Browse Source

g729dec: fix scalarproduct_int16 after API change

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 13 years ago
parent
commit
9ff43569d2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/g729dec.c

+ 2
- 2
libavcodec/g729dec.c View File

@@ -333,12 +333,12 @@ static int16_t g729d_voice_decision(int onset, int prev_voice_decision, const in
return voice_decision;
}

static int32_t scalarproduct_int16_c(const int16_t * v1, const int16_t * v2, int order, int shift)
static int32_t scalarproduct_int16_c(const int16_t * v1, const int16_t * v2, int order)
{
int res = 0;

while (order--)
res += (*v1++ * *v2++) >> shift;
res += *v1++ * *v2++;

return res;
}


Loading…
Cancel
Save