MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / zero_remaining

Function zero_remaining

libavcodec/alsdec.c:989–999  ·  view source on GitHub ↗

Computes the number of samples left to decode for the current frame and * sets these samples to zero. */

Source from the content-addressed store, hash-verified

987 * sets these samples to zero.
988 */
989static 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.

Callers 2

decode_blocks_indFunction · 0.85
decode_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected