| 621 | } |
| 622 | |
| 623 | static int decode_prediction(AACContext *ac, IndividualChannelStream *ics, |
| 624 | GetBitContext *gb) |
| 625 | { |
| 626 | int sfb; |
| 627 | if (get_bits1(gb)) { |
| 628 | ics->predictor_reset_group = get_bits(gb, 5); |
| 629 | if (ics->predictor_reset_group == 0 || ics->predictor_reset_group > 30) { |
| 630 | av_log(ac->avctx, AV_LOG_ERROR, "Invalid Predictor Reset Group.\n"); |
| 631 | return -1; |
| 632 | } |
| 633 | } |
| 634 | for (sfb = 0; sfb < FFMIN(ics->max_sfb, ff_aac_pred_sfb_max[ac->m4ac.sampling_index]); sfb++) { |
| 635 | ics->prediction_used[sfb] = get_bits1(gb); |
| 636 | } |
| 637 | return 0; |
| 638 | } |
| 639 | |
| 640 | /** |
| 641 | * Decode Individual Channel Stream info; reference: table 4.6. |
no test coverage detected