diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-11 23:17:03 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2007-08-11 23:17:03 +0000 |
commit | 295f37379269e2df0e8983fbe89787ef1f49dc93 (patch) | |
tree | 917a4d87f90782008ce0de378f34cbbc623604c0 /libavcodec/ra144.c | |
parent | b0f3382873d275c4bd2e04f6f4f74f75162e5325 (diff) | |
download | ffmpeg-295f37379269e2df0e8983fbe89787ef1f49dc93.tar.gz |
various simplifications around recent av_clip_int16() usage
Originally committed as revision 10080 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index c820c732ba..e308c59e58 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -430,7 +430,6 @@ static int ra144_decode_frame(AVCodecContext * avctx, 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 @@ static int ra144_decode_frame(AVCodecContext * avctx, 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; } |