[FFmpeg-cvslog] r22408 - trunk/libavcodec/aacsbr.c

alexc subversion
Tue Mar 9 21:16:15 CET 2010


Author: alexc
Date: Tue Mar  9 21:16:14 2010
New Revision: 22408

Log:
aacsbr: Initialize e_a[1] to -1.

This triggers lAPrev (e_a[0]) on the first SBR frame to be -1. The spec is
somewhat ambiguous to what this value should be but this increases the accuracy
of al_sbr_e_44_1 and similar streams from 14 bits to 15 bits.

Modified:
   trunk/libavcodec/aacsbr.c

Modified: trunk/libavcodec/aacsbr.c
==============================================================================
--- trunk/libavcodec/aacsbr.c	Tue Mar  9 18:39:19 2010	(r22407)
+++ trunk/libavcodec/aacsbr.c	Tue Mar  9 21:16:14 2010	(r22408)
@@ -138,6 +138,7 @@ av_cold void ff_aac_sbr_init(void)
 av_cold void ff_aac_sbr_ctx_init(SpectralBandReplication *sbr)
 {
     sbr->kx[0] = sbr->kx[1] = 32; //Typo in spec, kx' inits to 32
+    sbr->data[0].e_a[1] = sbr->data[1].e_a[1] = -1;
     sbr->data[0].synthesis_filterbank_samples_offset = SBR_SYNTHESIS_BUF_SIZE - (1280 - 128);
     sbr->data[1].synthesis_filterbank_samples_offset = SBR_SYNTHESIS_BUF_SIZE - (1280 - 128);
     ff_mdct_init(&sbr->mdct, 7, 1, 1.0/64);



More information about the ffmpeg-cvslog mailing list