Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-12 07:31:14 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-08-12 07:31:14 +0400
commit39c56ef9216c508a2c19cef93600e6590b4595cd (patch)
treee25463b1763f47e73c74309c3961a8c49d617e1a /libavcodec/sgidec.c
parentc5ea3a009b15a3334ca469885303182e9f218836 (diff)
sgidec: correct end pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/sgidec.c')
-rw-r--r--libavcodec/sgidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/sgidec.c b/libavcodec/sgidec.c
index 5741945dd2..e9d7731e9a 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;
}