summaryrefslogtreecommitdiff
path: root/libavcodec/dsicinav.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-08-11 22:48:55 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-08-11 22:48:55 +0000
commitaee481cebe8f95ce3789bdead6fb8ddfb142c37f (patch)
treebaa5eb5fc18cea91d0a68918b12b233910c902ca /libavcodec/dsicinav.c
parent160ab30fcccea5697b2c065e7647c370e321cca6 (diff)
downloadffmpeg-aee481cebe8f95ce3789bdead6fb8ddfb142c37f.tar.gz
use av_clip_int16() where it makes sense
Originally committed as revision 10078 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsicinav.c')
-rw-r--r--libavcodec/dsicinav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dsicinav.c b/libavcodec/dsicinav.c
index 78cdbe93a9..ecaa94e4d0 100644
--- a/libavcodec/dsicinav.c
+++ b/libavcodec/dsicinav.c
@@ -325,7 +325,7 @@ static int cinaudio_decode_frame(AVCodecContext *avctx,
}
while (buf_size > 0) {
cin->delta += cinaudio_delta16_table[*src++];
- cin->delta = av_clip(cin->delta, -32768, 32767);
+ cin->delta = av_clip_int16(cin->delta);
*samples++ = cin->delta;
--buf_size;
}