[FFmpeg-cvslog] aacenc_pred: only print predictor information if profile is aac_main

Rostislav Pehlivanov git at videolan.org
Sat Oct 17 03:31:46 CEST 2015


ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Sat Oct 17 02:15:44 2015 +0100| [148cf4690c81e64a3078caeb0344325686b66b16] | committer: Rostislav Pehlivanov

aacenc_pred: only print predictor information if profile is aac_main

Needed because LTP uses predictor_present as well.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=148cf4690c81e64a3078caeb0344325686b66b16
---

 libavcodec/aacenc_pred.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/aacenc_pred.c b/libavcodec/aacenc_pred.c
index 293f9d8..d76a575 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);



More information about the ffmpeg-cvslog mailing list