Mercurial > libavcodec.hg
diff ra144.c @ 5525:bc4791868c52 libavcodec
various simplifications around recent av_clip_int16() usage
author | aurel |
---|---|
date | Sat, 11 Aug 2007 23:17:03 +0000 |
parents | c2ab2ac31edb |
children | 2bd174b8d32e |
line wrap: on
line diff
--- a/ra144.c Sat Aug 11 23:09:28 2007 +0000 +++ b/ra144.c Sat Aug 11 23:17:03 2007 +0000 @@ -430,7 +430,6 @@ uint8_t * buf, int buf_size) { unsigned int a,b,c; - long s; signed short *shptr; unsigned int *lptr,*temp; const short **dptr; @@ -484,11 +483,8 @@ glob->resetflag=0; shptr=glob->output_buffer; - while (shptr<glob->output_buffer+BLOCKSIZE) { - s=*(shptr++)<<2; - *data=av_clip_int16(s); - data++; - } + while (shptr<glob->output_buffer+BLOCKSIZE) + *data++=av_clip_int16(*(shptr++)<<2); b+=30; }