[FFmpeg-soc] [soc]: r2908 - aacenc/aacpsy.c

kostya subversion at mplayerhq.hu
Wed Jul 30 13:16:57 CEST 2008


Author: kostya
Date: Wed Jul 30 13:16:56 2008
New Revision: 2908

Log:
Zero output band, as it may be coded in window group

Modified:
   aacenc/aacpsy.c

Modified: aacenc/aacpsy.c
==============================================================================
--- aacenc/aacpsy.c	(original)
+++ aacenc/aacpsy.c	Wed Jul 30 13:16:56 2008
@@ -99,6 +99,8 @@ static void psy_create_output(AACPsyCont
                 }
                 if(!cpe->ch[ch].zeroes[w][g])
                     sum = convert_coeffs(cpe->ch[ch].coeffs + start, cpe->ch[ch].icoefs + start, cpe->ch[ch].ics.swb_sizes[g], cpe->ch[ch].sf_idx[w][g]);
+                else
+                    memset(cpe->ch[ch].icoefs + start, 0, cpe->ch[ch].ics.swb_sizes[g] * sizeof(cpe->ch[0].icoefs[0]));
                 cpe->ch[ch].zeroes[w][g] = !sum;
                 //try finding pulses
                 if(search_pulses && cpe->ch[ch].ics.num_windows == 1 && !cpe->ch[ch].pulse.present){



More information about the FFmpeg-soc mailing list