comparison acelp_filters.c @ 7692:3ced4fb23342 libavcodec

Replace cliping in ff_acelp_interpolate() by a check&av_log, this should be the quickest way to find out if it is needed.
author michael
date Mon, 25 Aug 2008 22:51:47 +0000
parents 155ec22a635a
children 073847371624
comparison
equal deleted inserted replaced
7691:8313d5901c5c 7692:3ced4fb23342
73 v += in[n + i] * filter_coeffs[idx + frac_pos]; 73 v += in[n + i] * filter_coeffs[idx + frac_pos];
74 idx += precision; 74 idx += precision;
75 i++; 75 i++;
76 v += in[n - i] * filter_coeffs[idx - frac_pos]; 76 v += in[n - i] * filter_coeffs[idx - frac_pos];
77 } 77 }
78 out[n] = av_clip_int16(v >> 15); 78 if(av_clip_int16(v>>15) != (v>>15))
79 av_log(NULL, AV_LOG_WARNING, "overflow that would need cliping in ff_acelp_interpolate()\n");
80 out[n] = v >> 15;
79 } 81 }
80 } 82 }
81 83
82 void ff_acelp_convolve_circ( 84 void ff_acelp_convolve_circ(
83 int16_t* fc_out, 85 int16_t* fc_out,