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
/
ra144.c
diff --git
a/libavcodec/ra144.c
b/libavcodec/ra144.c
index
c4f4b81
..
c820c73
100644
(file)
--- a/
libavcodec/ra144.c
+++ b/
libavcodec/ra144.c
@@
-486,9
+486,7
@@
static int ra144_decode_frame(AVCodecContext * avctx,
shptr=glob->output_buffer;
while (shptr<glob->output_buffer+BLOCKSIZE) {
s=*(shptr++)<<2;
- *data=s;
- if (s>32767) *data=32767;
- if (s<-32767) *data=-32768;
+ *data=av_clip_int16(s);
data++;
}
b+=30;