[FFmpeg-soc] [soc]: r5410 - als/alsdec.c
thilo.borgmann
subversion at mplayerhq.hu
Wed Oct 14 02:45:13 CEST 2009
Author: thilo.borgmann
Date: Wed Oct 14 02:45:13 2009
New Revision: 5410
Log:
Changed long-term prediction to skip sums of zero.
Modified:
als/alsdec.c
Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c Wed Oct 14 02:41:47 2009 (r5409)
+++ als/alsdec.c Wed Oct 14 02:45:13 2009 (r5410)
@@ -619,7 +619,7 @@ static int read_var_block(ALSDecContext
if (use_ltp) {
int ltp_smp;
- for (ltp_smp = 0; ltp_smp < block_length; ltp_smp++) {
+ for (ltp_smp = FFMAX(ltp_lag - 2, 0); ltp_smp < block_length; ltp_smp++) {
int center = ltp_smp - ltp_lag;
int begin = FFMAX(0, center - 2);
int end = center + 3;
More information about the FFmpeg-soc
mailing list