1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix incorrect increment in sgidec.c

Fixes trac issue #899.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
Reimar Döffinger 2012-01-08 12:01:59 +01:00
parent 0c01947316
commit ee4ba9aecd

View File

@ -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;