diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 02:15:44 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 02:31:20 +0100 |
commit | 148cf4690c81e64a3078caeb0344325686b66b16 (patch) | |
tree | e39bb070e213f402bf6af6fc373eb1be751545d9 /libavcodec/aacenc_pred.c | |
parent | 3f3be1c07ac0a7aa53b6ce7774c00dc2eb9af6b8 (diff) | |
download | ffmpeg-148cf4690c81e64a3078caeb0344325686b66b16.tar.gz |
aacenc_pred: only print predictor information if profile is aac_main
Needed because LTP uses predictor_present as well.
Diffstat (limited to 'libavcodec/aacenc_pred.c')
-rw-r--r-- | libavcodec/aacenc_pred.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/aacenc_pred.c b/libavcodec/aacenc_pred.c index 293f9d86a1..d76a575190 100644 --- a/libavcodec/aacenc_pred.c +++ b/libavcodec/aacenc_pred.c @@ -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); |