Browse Source

aacenc_pred: only print predictor information if profile is aac_main

Needed because LTP uses predictor_present as well.
tags/n3.0
Rostislav Pehlivanov 10 years ago
parent
commit
148cf4690c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/aacenc_pred.c

+ 2
- 1
libavcodec/aacenc_pred.c 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);


Loading…
Cancel
Save