projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use av_clip_int16() where it makes sense
[ffmpeg.git]
/
libavcodec
/
wmadec.c
diff --git
a/libavcodec/wmadec.c
b/libavcodec/wmadec.c
index
f828c78
..
01bd47f
100644
(file)
--- a/
libavcodec/wmadec.c
+++ b/
libavcodec/wmadec.c
@@
-740,10
+740,7
@@
static int wma_decode_frame(WMACodecContext *s, int16_t *samples)
for(i=0;i<n;i++) {
a = lrintf(*iptr++);
- if (a > 32767)
- a = 32767;
- else if (a < -32768)
- a = -32768;
+ a = av_clip_int16(a);
*ptr = a;
ptr += incr;
}