Commit dd9630e4 authored by Reimar Döffinger's avatar Reimar Döffinger

Cosmetics: remove some pointless {}

Originally committed as revision 18284 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 993a4423
...@@ -213,9 +213,8 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s) ...@@ -213,9 +213,8 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s)
for (y = 0; y < 8; y++) { for (y = 0; y < 8; y++) {
flags = *s->stream_ptr++ | 0x100; flags = *s->stream_ptr++ | 0x100;
for (; flags != 1; flags >>= 1) { for (; flags != 1; flags >>= 1)
*s->pixel_ptr++ = P[flags & 1]; *s->pixel_ptr++ = P[flags & 1];
}
s->pixel_ptr += s->line_inc; s->pixel_ptr += s->line_inc;
} }
...@@ -265,9 +264,8 @@ static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s) ...@@ -265,9 +264,8 @@ static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s)
flags = bytestream_get_le16(&s->stream_ptr); flags = bytestream_get_le16(&s->stream_ptr);
} }
for (x = 0; x < 4; x++, flags >>= 1) { for (x = 0; x < 4; x++, flags >>= 1)
*s->pixel_ptr++ = P[flags & 1]; *s->pixel_ptr++ = P[flags & 1];
}
s->pixel_ptr += s->stride - 4; s->pixel_ptr += s->stride - 4;
// switch to right half // switch to right half
if (y == 7) s->pixel_ptr -= 8 * s->stride - 4; if (y == 7) s->pixel_ptr -= 8 * s->stride - 4;
...@@ -285,9 +283,8 @@ static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s) ...@@ -285,9 +283,8 @@ static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s)
/* vertical split; left & right halves are 2-color encoded */ /* vertical split; left & right halves are 2-color encoded */
for (y = 0; y < 16; y++) { for (y = 0; y < 16; y++) {
for (x = 0; x < 4; x++, flags >>= 1) { for (x = 0; x < 4; x++, flags >>= 1)
*s->pixel_ptr++ = P[flags & 1]; *s->pixel_ptr++ = P[flags & 1];
}
s->pixel_ptr += s->stride - 4; s->pixel_ptr += s->stride - 4;
// switch to right half // switch to right half
if (y == 7) { if (y == 7) {
...@@ -308,10 +305,8 @@ static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s) ...@@ -308,10 +305,8 @@ static int ipvideo_decode_block_opcode_0x8(IpvideoContext *s)
} }
flags = *s->stream_ptr++ | 0x100; flags = *s->stream_ptr++ | 0x100;
for (; flags != 1; flags >>= 1) { for (; flags != 1; flags >>= 1)
*s->pixel_ptr++ = P[flags & 1]; *s->pixel_ptr++ = P[flags & 1];
}
s->pixel_ptr += s->line_inc; s->pixel_ptr += s->line_inc;
} }
} }
...@@ -341,9 +336,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s) ...@@ -341,9 +336,8 @@ static int ipvideo_decode_block_opcode_0x9(IpvideoContext *s)
for (y = 0; y < 8; y++) { for (y = 0; y < 8; y++) {
/* get the next set of 8 2-bit flags */ /* get the next set of 8 2-bit flags */
int flags = bytestream_get_le16(&s->stream_ptr); int flags = bytestream_get_le16(&s->stream_ptr);
for (x = 0; x < 8; x++, flags >>= 2) { for (x = 0; x < 8; x++, flags >>= 2)
*s->pixel_ptr++ = P[flags & 0x03]; *s->pixel_ptr++ = P[flags & 0x03];
}
s->pixel_ptr += s->line_inc; s->pixel_ptr += s->line_inc;
} }
...@@ -419,9 +413,8 @@ static int ipvideo_decode_block_opcode_0xA(IpvideoContext *s) ...@@ -419,9 +413,8 @@ static int ipvideo_decode_block_opcode_0xA(IpvideoContext *s)
flags = bytestream_get_le32(&s->stream_ptr); flags = bytestream_get_le32(&s->stream_ptr);
} }
for (x = 0; x < 4; x++, flags >>= 2) { for (x = 0; x < 4; x++, flags >>= 2)
*s->pixel_ptr++ = P[flags & 0x03]; *s->pixel_ptr++ = P[flags & 0x03];
}
s->pixel_ptr += s->stride - 4; s->pixel_ptr += s->stride - 4;
// switch to right half // switch to right half
......
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