[FFmpeg-soc] [soc]: r5484 - in aac-sbr: aacsbr.c aacsbr_internal.h

alexc subversion at mplayerhq.hu
Wed Dec 2 22:49:24 CET 2009


Author: alexc
Date: Wed Dec  2 22:49:24 2009
New Revision: 5484

Log:
Add an initializer for the SBR context.

Modified:
   aac-sbr/aacsbr.c
   aac-sbr/aacsbr_internal.h

Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c	Wed Dec  2 22:49:22 2009	(r5483)
+++ aac-sbr/aacsbr.c	Wed Dec  2 22:49:24 2009	(r5484)
@@ -74,6 +74,11 @@ av_cold void ff_aac_sbr_init(void)
     SBR_INIT_VLC_STATIC(9, 512);
 }
 
+av_cold void ff_aac_sbr_ctx_init(SpectralBandReplication *sbr)
+{
+    sbr->k[4] = sbr->k[3] = 32; //Typo in spec, kx' inits to 32
+}
+
 static unsigned int sbr_header(SpectralBandReplication *sbr, GetBitContext *gb)
 {
     unsigned int cnt = get_bits_count(gb);

Modified: aac-sbr/aacsbr_internal.h
==============================================================================
--- aac-sbr/aacsbr_internal.h	Wed Dec  2 22:49:22 2009	(r5483)
+++ aac-sbr/aacsbr_internal.h	Wed Dec  2 22:49:24 2009	(r5484)
@@ -33,6 +33,7 @@
 #include "aacsbr.h"
 
 av_cold void ff_aac_sbr_init(void);
+av_cold void ff_aac_sbr_ctx_init(SpectralBandReplication *sbr);
 int ff_decode_sbr_extension(AACContext *ac, SpectralBandReplication *sbr,
                             GetBitContext *gb, int crc, int cnt, int id_aac);
 void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, int ch, float* in, float* out);


More information about the FFmpeg-soc mailing list