summaryrefslogtreecommitdiff
path: root/libavcodec/interplayvideo.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-29 17:35:22 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-03-29 17:35:22 +0000
commit49da3b7df2ae54d3512dd9b26ae20f1beb153cf0 (patch)
tree410fed3b6c6abd4172a471cefe5fd224913d21f6 /libavcodec/interplayvideo.c
parent03b269ddc251f5f532d1303b7786ff7bff82c514 (diff)
downloadffmpeg-49da3b7df2ae54d3512dd9b26ae20f1beb153cf0.tar.gz
Get rid of pointless "B" array in interplayvideo decoder.
Originally committed as revision 18222 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/interplayvideo.c')
-rw-r--r--libavcodec/interplayvideo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavcodec/interplayvideo.c b/libavcodec/interplayvideo.c
index dfa9b6d27d..28840da82b 100644
--- a/libavcodec/interplayvideo.c
+++ b/libavcodec/interplayvideo.c
@@ -265,7 +265,6 @@ static int ipvideo_decode_block_opcode_0x7(IpvideoContext *s)
{
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_0x7(IpvideoContext *s)
/* 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;