1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

shorten: use av_clip_int16() for output sample clipping

This commit is contained in:
Justin Ruggles 2011-09-16 17:51:40 -04:00
parent 069ada46c1
commit bd7f7d6c78

View File

@ -254,7 +254,7 @@ static int16_t * interleave_buffer(int16_t *samples, int nchan, int blocksize, i
int i, chan;
for (i=0; i<blocksize; i++)
for (chan=0; chan < nchan; chan++)
*samples++ = FFMIN(buffer[chan][i], 32768);
*samples++ = av_clip_int16(buffer[chan][i]);
return samples;
}