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
1 changed files with 1 additions and 1 deletions

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