Skip to content
Snippets Groups Projects
Commit 39c56ef9 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

sgidec: correct end pointer

parent c5ea3a00
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ static int read_rle_sgi(uint8_t *out_buf, SgiState *s) ...@@ -101,7 +101,7 @@ static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
dest_row -= s->linesize; dest_row -= s->linesize;
start_offset = bytestream2_get_be32(&g_table); start_offset = bytestream2_get_be32(&g_table);
bytestream2_seek(&s->g, start_offset, SEEK_SET); 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) { s->depth) != s->width) {
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment