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

Function decode_prediction

libavcodec/aacdec.c:623–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623static 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.

Callers 1

decode_ics_infoFunction · 0.85

Calls 3

get_bits1Function · 0.85
get_bitsFunction · 0.85
av_logFunction · 0.85

Tested by

no test coverage detected