mirror of https://git.ffmpeg.org/ffmpeg.git
aacenc_pred: only print predictor information if profile is aac_main
Needed because LTP uses predictor_present as well.
This commit is contained in:
parent
3f3be1c07a
commit
148cf4690c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue