aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-12 05:31:14 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-04-01 01:18:55 +0200
commit6d9ccee4519f41155c88655c77bfb1ef085797fd (patch)
tree71672171dd893f17e126bb13d44c4a15be9c3664 /libavcodec
parent0279d1d0946a854aa08919abd05b7f2da433823e (diff)
downloadffmpeg-6d9ccee4519f41155c88655c77bfb1ef085797fd.tar.gz
sgi: set the row boundary to the correct value
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/sgidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index 112a18159b..7c751f6adc 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -106,7 +106,7 @@ static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
dest_row -= s->linesize;
start_offset = bytestream2_get_be32(&g_table);
bytestream2_seek(&s->g, start_offset, SEEK_SET);
- if (expand_rle_row(s, dest_row + z, FFABS(s->linesize) - z,
+ if (expand_rle_row(s, dest_row + z, s->width * s->depth,
s->depth) != s->width) {
return AVERROR_INVALIDDATA;
}