Mercurial > libavcodec.hg
diff ra144.c @ 5523:c2ab2ac31edb libavcodec
use av_clip_int16() where it makes sense
author | aurel |
---|---|
date | Sat, 11 Aug 2007 22:48:55 +0000 |
parents | c8c591fe26f8 |
children | bc4791868c52 |
line wrap: on
line diff
--- a/ra144.c Fri Aug 10 19:28:28 2007 +0000 +++ b/ra144.c Sat Aug 11 22:48:55 2007 +0000 @@ -486,9 +486,7 @@ 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;