# HG changeset patch # User reimar # Date 1238348122 0 # Node ID b0dcca654e185d5be61a0bc6ecf1aba488c1198a # Parent 42c63846b32150e40c2674b3394d218fd9ff5cab Get rid of pointless "B" array in interplayvideo decoder. diff -r 42c63846b321 -r b0dcca654e18 interplayvideo.c --- 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;