From: Michael Niedermayer <[email protected]>
---
libavcodec/sgidec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index 1145afb..663c314 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;
}
--
1.8.3.4 (Apple Git-47)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel