comparison aac.c @ 10377:98816e4d5522 libavcodec

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
author conrad
date Thu, 08 Oct 2009 14:40:14 +0000
parents 28b0f87cfdf1
children 03b0316b9ead
comparison
equal deleted inserted replaced
10376:5c5b864d66e1 10377:98816e4d5522
525 525
526 // -1024 - Compensate wrong IMDCT method. 526 // -1024 - Compensate wrong IMDCT method.
527 // 32768 - Required to scale values to the correct range for the bias method 527 // 32768 - Required to scale values to the correct range for the bias method
528 // for float to int16 conversion. 528 // for float to int16 conversion.
529 529
530 if (ac->dsp.float_to_int16 == ff_float_to_int16_c) { 530 if (ac->dsp.float_to_int16_interleave == ff_float_to_int16_interleave_c) {
531 ac->add_bias = 385.0f; 531 ac->add_bias = 385.0f;
532 ac->sf_scale = 1. / (-1024. * 32768.); 532 ac->sf_scale = 1. / (-1024. * 32768.);
533 ac->sf_offset = 0; 533 ac->sf_offset = 0;
534 } else { 534 } else {
535 ac->add_bias = 0.0f; 535 ac->add_bias = 0.0f;