projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069ada4
)
shorten: use av_clip_int16() for output sample clipping
author
Justin Ruggles
<justin.ruggles@gmail.com>
Fri, 16 Sep 2011 21:51:40 +0000
(17:51 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Thu, 20 Oct 2011 17:09:26 +0000
(13:09 -0400)
libavcodec/shorten.c
patch
|
blob
|
history
diff --git
a/libavcodec/shorten.c
b/libavcodec/shorten.c
index
5ffd634
..
ec50fc1
100644
(file)
--- 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;
}