Revision 54063e37 libavcodec/binkaudio.c

View differences:

libavcodec/binkaudio.c
125 125
    if (CONFIG_BINKAUDIO_RDFT_DECODER && avctx->codec->id == CODEC_ID_BINKAUDIO_RDFT)
126 126
        ff_rdft_init(&s->trans.rdft, frame_len_bits, IRIDFT);
127 127
    else if (CONFIG_BINKAUDIO_DCT_DECODER)
128
        ff_dct_init(&s->trans.dct, frame_len_bits, 0);
128
        ff_dct_init(&s->trans.dct, frame_len_bits, 1);
129 129
    else
130 130
        return -1;
131 131

  
......
211 211
            }
212 212
        }
213 213

  
214
        if (CONFIG_BINKAUDIO_DCT_DECODER && use_dct)
214
        if (CONFIG_BINKAUDIO_DCT_DECODER && use_dct) {
215
            coeffs[0] /= 0.5;
215 216
            ff_dct_calc (&s->trans.dct,  coeffs);
217
            s->dsp.vector_fmul_scalar(coeffs, coeffs, s->frame_len / 2, s->frame_len);
218
        }
216 219
        else if (CONFIG_BINKAUDIO_RDFT_DECODER)
217 220
            ff_rdft_calc(&s->trans.rdft, coeffs);
218 221
    }

Also available in: Unified diff