[FFmpeg-cvslog] r18222 - trunk/libavcodec/interplayvideo.c

reimar subversion
Sun Mar 29 19:35:22 CEST 2009


Author: reimar
Date: Sun Mar 29 19:35:22 2009
New Revision: 18222

Log:
Get rid of pointless "B" array in interplayvideo decoder.

Modified:
   trunk/libavcodec/interplayvideo.c

Modified: trunk/libavcodec/interplayvideo.c
==============================================================================
--- trunk/libavcodec/interplayvideo.c	Sun Mar 29 19:23:40 2009	(r18221)
+++ trunk/libavcodec/interplayvideo.c	Sun Mar 29 19:35:22 2009	(r18222)
@@ -265,7 +265,6 @@ static int ipvideo_decode_block_opcode_0
 {
     int x, y;
     unsigned char P0, P1;
-    unsigned char B[8];
     unsigned int flags;
     int bitmask;
 
@@ -279,11 +278,9 @@ static int ipvideo_decode_block_opcode_0
 
         /* need 8 more bytes from the stream */
         CHECK_STREAM_PTR(8);
-        for (y = 0; y < 8; y++)
-            B[y] = *s->stream_ptr++;
 
         for (y = 0; y < 8; y++) {
-            flags = B[y];
+            flags = *s->stream_ptr++;
             for (x = 0x01; x <= 0x80; x <<= 1) {
                 if (flags & x)
                     *s->pixel_ptr++ = P1;



More information about the ffmpeg-cvslog mailing list