summaryrefslogtreecommitdiff
path: root/libavcodec/ra144.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r--libavcodec/ra144.c8
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;
}