diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-17 14:38:12 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-17 14:38:12 +0000 |
commit | 37e77035f24cfc166c25684cd4eccba58aad4c8c (patch) | |
tree | 712c8abaae05574adb83a7096bfd415afa157ed3 /libavcodec/ra144.c | |
parent | 0bd134abd3f661ee35e07df979e90e6b4d499163 (diff) | |
download | ffmpeg-37e77035f24cfc166c25684cd4eccba58aad4c8c.tar.gz |
Simplify ra144_decode_frame()
Originally committed as revision 13194 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra144.c')
-rw-r--r-- | libavcodec/ra144.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index b7e4c6fbc8..8e5725e21b 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -387,7 +387,6 @@ static int ra144_decode_frame(AVCodecContext * avctx, unsigned int a, b, c; int i; signed short *shptr; - int16_t *datao; int16_t *data = vdata; unsigned int val; @@ -397,8 +396,6 @@ static int ra144_decode_frame(AVCodecContext * avctx, if(buf_size == 0) return 0; - datao = data; - init_get_bits(&gb, buf, 20 * 8); for (i=0; i<10; i++) @@ -449,7 +446,7 @@ static int ra144_decode_frame(AVCodecContext * avctx, FFSWAP(unsigned int *, glob->swapbuf1alt, glob->swapbuf1); FFSWAP(unsigned int *, glob->swapbuf2alt, glob->swapbuf2); - *data_size = (data-datao)*sizeof(*data); + *data_size = 2*160; return 20; } |