Mercurial > libavcodec.hg
changeset 11461:908cc63498ec libavcodec
Make binkaudio work with ff_float_to_int16_interleave_c (martin at martin dot st)
author | pross |
---|---|
date | Thu, 11 Mar 2010 10:52:34 +0000 |
parents | a385968f8fb0 |
children | c2e19a511e26 |
files | binkaudio.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/binkaudio.c Thu Mar 11 02:32:05 2010 +0000 +++ b/binkaudio.c Thu Mar 11 10:52:34 2010 +0000 @@ -222,6 +222,11 @@ ff_rdft_calc(&s->trans.rdft, coeffs); } + if (s->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) { + for (i = 0; i < s->channels; i++) + for (j = 0; j < s->frame_len; j++) + s->coeffs_ptr[i][j] = 385.0 + s->coeffs_ptr[i][j]*(1.0/32767.0); + } s->dsp.float_to_int16_interleave(out, (const float **)s->coeffs_ptr, s->frame_len, s->channels); if (!s->first) {