Commit 2baaa9ae authored by vitor's avatar vitor

Simplify ra144_decode_frame()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13194 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 19a20f2c
...@@ -387,7 +387,6 @@ static int ra144_decode_frame(AVCodecContext * avctx, ...@@ -387,7 +387,6 @@ static int ra144_decode_frame(AVCodecContext * avctx,
unsigned int a, b, c; unsigned int a, b, c;
int i; int i;
signed short *shptr; signed short *shptr;
int16_t *datao;
int16_t *data = vdata; int16_t *data = vdata;
unsigned int val; unsigned int val;
...@@ -397,8 +396,6 @@ static int ra144_decode_frame(AVCodecContext * avctx, ...@@ -397,8 +396,6 @@ static int ra144_decode_frame(AVCodecContext * avctx,
if(buf_size == 0) if(buf_size == 0)
return 0; return 0;
datao = data;
init_get_bits(&gb, buf, 20 * 8); init_get_bits(&gb, buf, 20 * 8);
for (i=0; i<10; i++) for (i=0; i<10; i++)
...@@ -449,7 +446,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, ...@@ -449,7 +446,7 @@ static int ra144_decode_frame(AVCodecContext * avctx,
FFSWAP(unsigned int *, glob->swapbuf1alt, glob->swapbuf1); FFSWAP(unsigned int *, glob->swapbuf1alt, glob->swapbuf1);
FFSWAP(unsigned int *, glob->swapbuf2alt, glob->swapbuf2); FFSWAP(unsigned int *, glob->swapbuf2alt, glob->swapbuf2);
*data_size = (data-datao)*sizeof(*data); *data_size = 2*160;
return 20; return 20;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment