Commit 35a96ea9 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

minor detail with the last patch

parent 285bc372
...@@ -420,7 +420,7 @@ static inline int interp_bits2pulses(const CELTMode *m, int start, int end, int ...@@ -420,7 +420,7 @@ static inline int interp_bits2pulses(const CELTMode *m, int start, int end, int
percoeff = left/(m->eBands[codedBands]-m->eBands[start]); percoeff = left/(m->eBands[codedBands]-m->eBands[start]);
left -= (m->eBands[codedBands]-m->eBands[start])*percoeff; left -= (m->eBands[codedBands]-m->eBands[start])*percoeff;
for (j=start;j<codedBands;j++) for (j=start;j<codedBands;j++)
bits[j] += (int)(percoeff*(m->eBands[j+1]-m->eBands[j])); bits[j] += ((int)percoeff*(m->eBands[j+1]-m->eBands[j]));
for (j=start;j<codedBands;j++) for (j=start;j<codedBands;j++)
{ {
int tmp = (int)IMIN(left, m->eBands[j+1]-m->eBands[j]); int tmp = (int)IMIN(left, m->eBands[j+1]-m->eBands[j]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment