diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-11 22:48:55 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-11 22:48:55 +0000 |
commit | aee481cebe8f95ce3789bdead6fb8ddfb142c37f (patch) | |
tree | baa5eb5fc18cea91d0a68918b12b233910c902ca /libavcodec/ra144.c | |
parent | 160ab30fcccea5697b2c065e7647c370e321cca6 (diff) | |
download | ffmpeg-aee481cebe8f95ce3789bdead6fb8ddfb142c37f.tar.gz |
use av_clip_int16() where it makes sense
Originally committed as revision 10078 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index c4f4b813b3..c820c732ba 100644 --- 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; |