use av_clip_int16() where it makes sense

Originally committed as revision 10078 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs
2007-08-11 22:48:55 +00:00
parent 160ab30fcc
commit aee481cebe
14 changed files with 34 additions and 64 deletions

View File

@@ -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;
}