Computes the number of samples left to decode for the current frame and * sets these samples to zero. */
| 987 | * sets these samples to zero. |
| 988 | */ |
| 989 | static void zero_remaining(unsigned int b, unsigned int b_max, |
| 990 | const unsigned int *div_blocks, int32_t *buf) |
| 991 | { |
| 992 | unsigned int count = 0; |
| 993 | |
| 994 | while (b < b_max) |
| 995 | count += div_blocks[b]; |
| 996 | |
| 997 | if (count) |
| 998 | memset(buf, 0, sizeof(*buf) * count); |
| 999 | } |
| 1000 | |
| 1001 | |
| 1002 | /** Decodes blocks independently. |
no outgoing calls
no test coverage detected