[FFmpeg-cvslog] r22466 - trunk/libavcodec/binkaudio.c
pross
subversion
Thu Mar 11 11:52:34 CET 2010
Author: pross
Date: Thu Mar 11 11:52:34 2010
New Revision: 22466
Log:
Make binkaudio work with ff_float_to_int16_interleave_c (martin at martin dot st)
Modified:
trunk/libavcodec/binkaudio.c
Modified: trunk/libavcodec/binkaudio.c
==============================================================================
--- trunk/libavcodec/binkaudio.c Thu Mar 11 09:33:04 2010 (r22465)
+++ trunk/libavcodec/binkaudio.c Thu Mar 11 11:52:34 2010 (r22466)
@@ -222,6 +222,11 @@ static void decode_block(BinkAudioContex
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) {
More information about the ffmpeg-cvslog
mailing list