[FFmpeg-soc] [soc]: r5515 - aac-sbr/aacsbr.c

alexc subversion at mplayerhq.hu
Tue Dec 8 23:59:03 CET 2009


Author: alexc
Date: Tue Dec  8 23:59:03 2009
New Revision: 5515

Log:
Save the last envelope/noise floor of this frame for the next.

Modified:
   aac-sbr/aacsbr.c

Modified: aac-sbr/aacsbr.c
==============================================================================
--- aac-sbr/aacsbr.c	Tue Dec  8 23:59:00 2009	(r5514)
+++ aac-sbr/aacsbr.c	Tue Dec  8 23:59:03 2009	(r5515)
@@ -978,7 +978,10 @@ static void sbr_env_noise_floors(Spectra
             }
         }
     }
-    //FIXME : assign 0th elements of (env|noise)_facs from last elements
+
+    //assign 0th elements of (env|noise)_facs from last elements
+    memcpy(  sbr->env_facs[ch][0],   sbr->env_facs[ch][ch_data->bs_num_env[1]], sizeof(  sbr->env_facs[ch][0]));
+    memcpy(sbr->noise_facs[ch][0], sbr->noise_facs[ch][ch_data->bs_num_noise ], sizeof(sbr->noise_facs[ch][0]));
 }
 
 // Dequantisation and stereo decoding (14496-3 sp04 p203)


More information about the FFmpeg-soc mailing list