Commit c780be8a authored by reimar's avatar reimar

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18222 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0ff96f1b
...@@ -265,7 +265,6 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s) ...@@ -265,7 +265,6 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s)
{ {
int x, y; int x, y;
unsigned char P0, P1; unsigned char P0, P1;
unsigned char B[8];
unsigned int flags; unsigned int flags;
int bitmask; int bitmask;
...@@ -279,11 +278,9 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s) ...@@ -279,11 +278,9 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s)
/* need 8 more bytes from the stream */ /* need 8 more bytes from the stream */
CHECK_STREAM_PTR(8); CHECK_STREAM_PTR(8);
for (y = 0; y < 8; y++)
B[y] = *s->stream_ptr++;
for (y = 0; y < 8; y++) { for (y = 0; y < 8; y++) {
flags = B[y]; flags = *s->stream_ptr++;
for (x = 0x01; x <= 0x80; x <<= 1) { for (x = 0x01; x <= 0x80; x <<= 1) {
if (flags & x) if (flags & x)
*s->pixel_ptr++ = P1; *s->pixel_ptr++ = P1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment