changeset 6828:0969192d5f8b libavcodec

Simplify ra144_decode_frame()
author vitor
date Sat, 17 May 2008 14:38:12 +0000
parents 51c80db5905c
children 97e57c7986fd
files ra144.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Sat May 17 14:36:44 2008 +0000
+++ b/ra144.c	Sat May 17 14:38:12 2008 +0000
@@ -387,7 +387,6 @@
     unsigned int a, b, c;
     int i;
     signed short *shptr;
-    int16_t *datao;
     int16_t *data = vdata;
     unsigned int val;
 
@@ -397,8 +396,6 @@
     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 @@
     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;
 }