[FFmpeg-soc] [soc]: r2613 - aac/aac.c

superdump subversion at mplayerhq.hu
Tue Jul 1 11:53:32 CEST 2008


Author: superdump
Date: Tue Jul  1 11:53:32 2008
New Revision: 2613

Log:
Remove unnecessary branch for first frame. The out buffer is not used for the
first frame anyway.


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Tue Jul  1 11:53:32 2008
@@ -1747,7 +1747,6 @@ static void window_trans(AACContext * ac
 
     if (ics->window_sequence != EIGHT_SHORT_SEQUENCE) {
         ff_imdct_calc(&ac->mdct, buf, in, out); // out can be abused for now as a temp buffer
-        if (ac->is_saved) {
             if (ics->window_sequence != LONG_STOP_SEQUENCE) {
                 ac->dsp.vector_fmul_add_add(out, buf, lwindow_prev, saved, ac->add_bias, 1024, 1);
             } else {
@@ -1755,7 +1754,6 @@ static void window_trans(AACContext * ac
                 ac->dsp.vector_fmul_add_add(out + 448, buf + 448, swindow_prev, saved + 448, ac->add_bias, 128, 1);
                 for (i = 576; i < 1024; i++)   out[i] = buf[i] + saved[i] + ac->add_bias;
             }
-        }
         if (ics->window_sequence != LONG_START_SEQUENCE) {
             ac->dsp.vector_fmul_reverse(saved, buf + 1024, lwindow, 1024);
         } else {



More information about the FFmpeg-soc mailing list