aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/gifdec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-05 15:06:12 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2006-11-05 15:06:12 +0000
commitb190aa89190e236fae7646a6dd18b99123c1eb9b (patch)
tree065ef3a9ea0ab5fd4203a4c3acf41322570cf476 /libavcodec/gifdec.c
parent3c88ea24761efda7d1c7886119c618e1f66cb1c9 (diff)
downloadffmpeg-b190aa89190e236fae7646a6dd18b99123c1eb9b.tar.gz
fix decoding position
Originally committed as revision 6900 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r--libavcodec/gifdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index bde483499c..9e8765e1cc 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -111,7 +111,7 @@ static int gif_read_image(GifState *s)
/* read all the image */
linesize = s->picture.linesize[0];
- ptr1 = s->picture.data[0] + top * linesize + (left * 3);
+ ptr1 = s->picture.data[0] + top * linesize + left;
ptr = ptr1;
pass = 0;
y1 = 0;