diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-08 12:01:59 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-01-08 17:26:23 +0100 |
commit | ee4ba9aecd7ce341be12b655ce58957fbb0e94e0 (patch) | |
tree | 69291aca3d48edde0dd02aa89166e3d2e5675e96 | |
parent | 0c01947316eaaa46946f9e93218fe5ab115df905 (diff) | |
download | ffmpeg-ee4ba9aecd7ce341be12b655ce58957fbb0e94e0.tar.gz |
Fix incorrect increment in sgidec.c
Fixes trac issue #899.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r-- | libavcodec/sgidec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c index b0a0b20a5e..ae05d83592 100644 --- a/libavcodec/sgidec.c +++ b/libavcodec/sgidec.c @@ -137,7 +137,8 @@ static int read_uncompressed_sgi(unsigned char* out_buf, uint8_t* out_end, for (y = s->height - 1; y >= 0; y--) { out_end = out_buf + (y * s->linesize); for (x = s->width; x > 0; x--) { - ptr = in_buf += s->bytes_per_channel; + ptr = in_buf; + in_buf += s->bytes_per_channel; for(z = 0; z < s->depth; z ++) { memcpy(out_end, ptr, s->bytes_per_channel); out_end += s->bytes_per_channel; |