[FFmpeg-cvslog] r13194 - trunk/libavcodec/ra144.c

vitor subversion
Sat May 17 16:38:12 CEST 2008


Author: vitor
Date: Sat May 17 16:38:12 2008
New Revision: 13194

Log:
Simplify ra144_decode_frame()

Modified:
   trunk/libavcodec/ra144.c

Modified: trunk/libavcodec/ra144.c
==============================================================================
--- trunk/libavcodec/ra144.c	(original)
+++ trunk/libavcodec/ra144.c	Sat May 17 16:38:12 2008
@@ -387,7 +387,6 @@ static int ra144_decode_frame(AVCodecCon
     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(AVCodecCon
     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(AVCodecCon
     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;
 }
 




More information about the ffmpeg-cvslog mailing list