| 431 | } |
| 432 | |
| 433 | static void decode_mclms(WmallDecodeCtx *s) |
| 434 | { |
| 435 | s->mclms_order = (get_bits(&s->gb, 4) + 1) * 2; |
| 436 | s->mclms_scaling = get_bits(&s->gb, 4); |
| 437 | if (get_bits1(&s->gb)) { |
| 438 | int i, send_coef_bits; |
| 439 | int cbits = av_log2(s->mclms_scaling + 1); |
| 440 | if (1 << cbits < s->mclms_scaling + 1) |
| 441 | cbits++; |
| 442 | |
| 443 | send_coef_bits = get_bitsz(&s->gb, cbits) + 2; |
| 444 | |
| 445 | for (i = 0; i < s->mclms_order * s->num_channels * s->num_channels; i++) |
| 446 | s->mclms_coeffs[i] = get_bits(&s->gb, send_coef_bits); |
| 447 | |
| 448 | for (i = 0; i < s->num_channels; i++) { |
| 449 | int c; |
| 450 | for (c = 0; c < i; c++) |
| 451 | s->mclms_coeffs_cur[i * s->num_channels + c] = get_bits(&s->gb, send_coef_bits); |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | static int decode_cdlms(WmallDecodeCtx *s) |
| 457 | { |
no test coverage detected