[FFmpeg-cvslog] sgidec: correct end pointer

Michael Niedermayer git at videolan.org
Sun Aug 12 05:42:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Aug 12 05:31:14 2012 +0200| [39c56ef9216c508a2c19cef93600e6590b4595cd] | committer: Michael Niedermayer

sgidec: correct end pointer

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=39c56ef9216c508a2c19cef93600e6590b4595cd
---

 libavcodec/sgidec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index 5741945..e9d7731 100644
--- a/libavcodec/sgidec.c
+++ b/libavcodec/sgidec.c
@@ -101,7 +101,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, dest_row + FFABS(s->linesize),
+            if (expand_rle_row(s, dest_row + z, dest_row + s->width*s->depth,
                                s->depth) != s->width) {
                 return AVERROR_INVALIDDATA;
             }



More information about the ffmpeg-cvslog mailing list