Commit bd7f7d6c authored by Justin Ruggles's avatar Justin Ruggles

shorten: use av_clip_int16() for output sample clipping

parent 069ada46
...@@ -254,7 +254,7 @@ static int16_t * interleave_buffer(int16_t *samples, int nchan, int blocksize, i ...@@ -254,7 +254,7 @@ static int16_t * interleave_buffer(int16_t *samples, int nchan, int blocksize, i
int i, chan; int i, chan;
for (i=0; i<blocksize; i++) for (i=0; i<blocksize; i++)
for (chan=0; chan < nchan; chan++) for (chan=0; chan < nchan; chan++)
*samples++ = FFMIN(buffer[chan][i], 32768); *samples++ = av_clip_int16(buffer[chan][i]);
return samples; return samples;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment