aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/shorten.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-09-16 17:51:40 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-10-20 13:09:26 -0400
commitbd7f7d6c7813ccf4ef1daaa7b01463f31fe7a7d4 (patch)
tree2af53e570fb4dc0b2175548f0c8302c4e9daf543 /libavcodec/shorten.c
parent069ada46c1445babdec543210b93d98f37ef618e (diff)
downloadffmpeg-bd7f7d6c7813ccf4ef1daaa7b01463f31fe7a7d4.tar.gz
shorten: use av_clip_int16() for output sample clipping
Diffstat (limited to 'libavcodec/shorten.c')
-rw-r--r--libavcodec/shorten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/shorten.c b/libavcodec/shorten.c
index 5ffd634e24..ec50fc1c6e 100644
--- a/libavcodec/shorten.c
+++ b/libavcodec/shorten.c
@@ -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;
}