Reads the block data. */
| 929 | /** Reads the block data. |
| 930 | */ |
| 931 | static 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. |
no test coverage detected