comparison mpegaudiodec.c @ 11716:fcb1d0addf28 libavcodec

Fix compilation with low precission mpeg audio decoding.
author michael
date Thu, 13 May 2010 10:04:31 +0000
parents 7ca3795af11b
children 5aa83c5fb2c9
comparison
equal deleted inserted replaced
11715:a0f514fb84d6 11716:fcb1d0addf28
845 #endif 845 #endif
846 846
847 offset = *synth_buf_offset; 847 offset = *synth_buf_offset;
848 synth_buf = synth_buf_ptr + offset; 848 synth_buf = synth_buf_ptr + offset;
849 849
850 #if FRAC_BITS <= 15 850 #if FRAC_BITS <= 15 && !CONFIG_FLOAT
851 assert(!CONFIG_FLOAT);
852 dct32(tmp, sb_samples); 851 dct32(tmp, sb_samples);
853 for(j=0;j<32;j++) { 852 for(j=0;j<32;j++) {
854 /* NOTE: can cause a loss in precision if very high amplitude 853 /* NOTE: can cause a loss in precision if very high amplitude
855 sound */ 854 sound */
856 synth_buf[j] = av_clip_int16(tmp[j]); 855 synth_buf[j] = av_clip_int16(tmp[j]);