changeset 9274:b0dcca654e18 libavcodec

Get rid of pointless "B" array in interplayvideo decoder.
author reimar
date Sun, 29 Mar 2009 17:35:22 +0000
parents 42c63846b321
children 67cf9d31724c
files interplayvideo.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/interplayvideo.c	Sun Mar 29 17:23:40 2009 +0000
+++ b/interplayvideo.c	Sun Mar 29 17:35:22 2009 +0000
@@ -265,7 +265,6 @@
 {
     int x, y;
     unsigned char P0, P1;
-    unsigned char B[8];
     unsigned int flags;
     int bitmask;
 
@@ -279,11 +278,9 @@
 
         /* 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;