[FFmpeg-cvslog] r20192 - in trunk/libavcodec: aac.c dca.c

conrad subversion
Thu Oct 8 16:40:14 CEST 2009


Author: conrad
Date: Thu Oct  8 16:40:14 2009
New Revision: 20192

Log:
dca and aac decoders use float_to_int16_interleave, so check for
the C version of that rather than float_to_int16.
Fixes output on ARM/VFP

Modified:
   trunk/libavcodec/aac.c
   trunk/libavcodec/dca.c

Modified: trunk/libavcodec/aac.c
==============================================================================
--- trunk/libavcodec/aac.c	Wed Oct  7 23:35:24 2009	(r20191)
+++ trunk/libavcodec/aac.c	Thu Oct  8 16:40:14 2009	(r20192)
@@ -527,7 +527,7 @@ static av_cold int aac_decode_init(AVCod
     // 32768 - Required to scale values to the correct range for the bias method
     //         for float to int16 conversion.
 
-    if (ac->dsp.float_to_int16 == ff_float_to_int16_c) {
+    if (ac->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) {
         ac->add_bias  = 385.0f;
         ac->sf_scale  = 1. / (-1024. * 32768.);
         ac->sf_offset = 0;

Modified: trunk/libavcodec/dca.c
==============================================================================
--- trunk/libavcodec/dca.c	Wed Oct  7 23:35:24 2009	(r20191)
+++ trunk/libavcodec/dca.c	Thu Oct  8 16:40:14 2009	(r20192)
@@ -1324,7 +1324,7 @@ static av_cold int dca_decode_init(AVCod
         s->samples_chanptr[i] = s->samples + i * 256;
     avctx->sample_fmt = SAMPLE_FMT_S16;
 
-    if(s->dsp.float_to_int16 == ff_float_to_int16_c) {
+    if(s->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) {
         s->add_bias = 385.0f;
         s->scale_bias = 1.0 / 32768.0;
     } else {



More information about the ffmpeg-cvslog mailing list