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
/
cook.c
diff --git
a/libavcodec/cook.c
b/libavcodec/cook.c
index
2765b12
..
43b661d
100644
(file)
--- a/
libavcodec/cook.c
+++ b/
libavcodec/cook.c
@@
-906,7
+906,7
@@
saturate_output_float (COOKContext *q, int chan, int16_t *out)
*/
for (j = 0; j < q->samples_per_channel; j++) {
out[chan + q->nb_channels * j] =
- av_clip
(lrintf(output[j]), -32768, 32767
);
+ av_clip
_int16(lrintf(output[j])
);
}
}