diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-12 02:48:55 +0400 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-12 02:48:55 +0400 |
commit | aee481cebe8f95ce3789bdead6fb8ddfb142c37f (patch) | |
tree | baa5eb5fc18cea91d0a68918b12b233910c902ca /libavcodec/libvorbis.c | |
parent | 160ab30fcccea5697b2c065e7647c370e321cca6 (diff) |
use av_clip_int16() where it makes sense
Originally committed as revision 10078 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libvorbis.c')
-rw-r--r-- | libavcodec/libvorbis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/libvorbis.c b/libavcodec/libvorbis.c index 5d40e91b52..faaceb0ba7 100644 --- a/libavcodec/libvorbis.c +++ b/libavcodec/libvorbis.c @@ -307,8 +307,7 @@ static inline int conv(int samples, float **pcm, char *buf, int channels) { val = mono[j] * 32767.f; - if(val > 32767) val = 32767 ; - if(val < -32768) val = -32768 ; + val = av_clip_int16(val); *ptr = val ; ptr += channels; |