Mercurial > libavcodec.hg
comparison nellymoserdec.c @ 6741:8d6c07df5afd libavcodec
Move declaration a little.
author | michael |
---|---|
date | Sat, 03 May 2008 17:28:25 +0000 |
parents | ac91a72922e5 |
children | f7cbb7733146 |
comparison
equal
deleted
inserted
replaced
6740:ac91a72922e5 | 6741:8d6c07df5afd |
---|---|
129 memcpy(state, a_in + NELLY_BUF_LEN, sizeof(float)*NELLY_BUF_LEN); | 129 memcpy(state, a_in + NELLY_BUF_LEN, sizeof(float)*NELLY_BUF_LEN); |
130 } | 130 } |
131 | 131 |
132 static int sum_bits(short *buf, short shift, short off) | 132 static int sum_bits(short *buf, short shift, short off) |
133 { | 133 { |
134 int b, i, ret = 0; | 134 int i, ret = 0; |
135 | 135 |
136 for (i = 0; i < NELLY_FILL_LEN; i++) { | 136 for (i = 0; i < NELLY_FILL_LEN; i++) { |
137 b = buf[i]-off; | 137 int b = buf[i]-off; |
138 b = ((b>>(shift-1))+1)>>1; | 138 b = ((b>>(shift-1))+1)>>1; |
139 ret += av_clip(b, 0, NELLY_BIT_CAP); | 139 ret += av_clip(b, 0, NELLY_BIT_CAP); |
140 } | 140 } |
141 | 141 |
142 return ret; | 142 return ret; |