aacenc_pred: only print predictor information if profile is aac_main

Needed because LTP uses predictor_present as well.
This commit is contained in:
Rostislav Pehlivanov 2015-10-17 02:15:44 +01:00
parent 3f3be1c07a
commit 148cf4690c
1 changed files with 2 additions and 1 deletions

View File

@ -333,7 +333,8 @@ void ff_aac_encode_main_pred(AACEncContext *s, SingleChannelElement *sce)
IndividualChannelStream *ics = &sce->ics;
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;
put_bits(&s->pb, 1, !!ics->predictor_reset_group);