Browse Source

Replace cliping in ff_acelp_interpolate() by a check&av_log, this should be the

quickest way to find out if it is needed.

Originally committed as revision 14970 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
2ad0d96a24
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavcodec/acelp_filters.c

+ 3
- 1
libavcodec/acelp_filters.c View File

@@ -75,7 +75,9 @@ void ff_acelp_interpolate(
i++;
v += in[n - i] * filter_coeffs[idx - frac_pos];
}
out[n] = av_clip_int16(v >> 15);
if(av_clip_int16(v>>15) != (v>>15))
av_log(NULL, AV_LOG_WARNING, "overflow that would need cliping in ff_acelp_interpolate()\n");
out[n] = v >> 15;
}
}



Loading…
Cancel
Save