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

Function read_block

libavcodec/alsdec.c:931–944  ·  view source on GitHub ↗

Reads the block data. */

Source from the content-addressed store, hash-verified

929/** Reads the block data.
930 */
931static int read_block(ALSDecContext *ctx, ALSBlockData *bd)
932{
933 GetBitContext *gb = &ctx->gb;
934
935 // read block type flag and read the samples accordingly
936 if (get_bits1(gb)) {
937 if (read_var_block_data(ctx, bd))
938 return -1;
939 } else {
940 read_const_block_data(ctx, bd);
941 }
942
943 return 0;
944}
945
946
947/** Decodes the block data.

Callers 2

read_decode_blockFunction · 0.85
read_frame_dataFunction · 0.85

Calls 3

get_bits1Function · 0.85
read_var_block_dataFunction · 0.85
read_const_block_dataFunction · 0.85

Tested by

no test coverage detected