[FFmpeg-soc] [soc]: r2557 - aac/aac.c

superdump subversion at mplayerhq.hu
Mon Jun 23 12:53:42 CEST 2008


Author: superdump
Date: Mon Jun 23 12:53:42 2008
New Revision: 2557

Log:
Remove unneeded check as index can never be -1


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Mon Jun 23 12:53:42 2008
@@ -1177,10 +1177,6 @@ static int decode_spectral_data(AACConte
                         const int coef_idx = (group << 7) + k;
                         const int8_t *vq_ptr = &codebook_vectors[cur_cb - 1][index * dim];
                         int j;
-                        if (index == -1) {
-                            av_log(ac->avccontext, AV_LOG_ERROR, "Error in spectral data\n");
-                            return -1;
-                        }
                         for (j = 0; j < dim; j++)
                             icoef[coef_idx + j] = 1;
                         if (IS_CODEBOOK_UNSIGNED(cur_cb)) {



More information about the FFmpeg-soc mailing list