[FFmpeg-cvslog] aacenc: populate tns_max_bands

Rostislav Pehlivanov git at videolan.org
Tue Sep 1 08:09:41 CEST 2015


ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Tue Sep  1 06:20:24 2015 +0100| [5ed5ca706fcef919960d2342f5a97f1b38153c6b] | committer: Rostislav Pehlivanov

aacenc: populate tns_max_bands

Needed for the following commits.

Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>

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

 libavcodec/aacenc.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index a32f0d4..62dba34 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -525,6 +525,9 @@ static int aac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
             ics->swb_offset         = wi[ch].window_type[0] == EIGHT_SHORT_SEQUENCE ?
                                         ff_swb_offset_128 [s->samplerate_index]:
                                         ff_swb_offset_1024[s->samplerate_index];
+            ics->tns_max_bands      = wi[ch].window_type[0] == EIGHT_SHORT_SEQUENCE ?
+                                        ff_tns_max_bands_128 [s->samplerate_index]:
+                                        ff_tns_max_bands_1024[s->samplerate_index];
             clip_avoidance_factor = 0.0f;
             for (w = 0; w < ics->num_windows; w++)
                 ics->group_len[w] = wi[ch].grouping[w];



More information about the ffmpeg-cvslog mailing list