OSDN Git Service

AAC: Simplify some logic from r19956. (The escape codebook is unsigned.)
authorAlex Converse <alex.converse@gmail.com>
Tue, 22 Sep 2009 01:34:42 +0000 (01:34 +0000)
committerAlex Converse <alex.converse@gmail.com>
Tue, 22 Sep 2009 01:34:42 +0000 (01:34 +0000)
Originally committed as revision 19958 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/aac.c

index 31bfe5b..d63d99f 100644 (file)
@@ -927,7 +927,7 @@ static int decode_spectrum_and_dequant(AACContext *ac, float coef[1024],
                     if (is_cb_unsigned && cur_band_type != ESC_BT) {
                         ac->dsp.vector_fmul_sv_scalar[dim>>2](
                             cf, cf, vq, sf[idx], len);
-                    } else if (is_cb_unsigned && cur_band_type == ESC_BT) {
+                    } else if (cur_band_type == ESC_BT) {
                         ac->dsp.vector_fmul_scalar(cf, cf, sf[idx], len);
                     } else {    /* !is_cb_unsigned */
                         ac->dsp.sv_fmul_scalar[dim>>2](cf, vq, sf[idx], len);