mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-27 10:51:31 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user