Commit 148cf469 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

aacenc_pred: only print predictor information if profile is aac_main

Needed because LTP uses predictor_present as well.
parent 3f3be1c0
...@@ -333,7 +333,8 @@ void ff_aac_encode_main_pred(AACEncContext *s, SingleChannelElement *sce) ...@@ -333,7 +333,8 @@ void ff_aac_encode_main_pred(AACEncContext *s, SingleChannelElement *sce)
IndividualChannelStream *ics = &sce->ics; IndividualChannelStream *ics = &sce->ics;
const int pmax = FFMIN(ics->max_sfb, ff_aac_pred_sfb_max[s->samplerate_index]); const int pmax = FFMIN(ics->max_sfb, ff_aac_pred_sfb_max[s->samplerate_index]);
if (!ics->predictor_present) if (s->profile != FF_PROFILE_AAC_MAIN ||
!ics->predictor_present)
return; return;
put_bits(&s->pb, 1, !!ics->predictor_reset_group); put_bits(&s->pb, 1, !!ics->predictor_reset_group);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment