comparison gifdec.c @ 4143:a8e3a116b41f libavcodec

fix decoding position
author bcoudurier
date Sun, 05 Nov 2006 15:06:12 +0000
parents f426c81afc9e
children dc52a253f51b
comparison
equal deleted inserted replaced
4142:79ddfdee291d 4143:a8e3a116b41f
109 //TODO: add proper data size 109 //TODO: add proper data size
110 ff_lzw_decode_init(s->lzw, code_size, s->bytestream, 0, FF_LZW_GIF); 110 ff_lzw_decode_init(s->lzw, code_size, s->bytestream, 0, FF_LZW_GIF);
111 111
112 /* read all the image */ 112 /* read all the image */
113 linesize = s->picture.linesize[0]; 113 linesize = s->picture.linesize[0];
114 ptr1 = s->picture.data[0] + top * linesize + (left * 3); 114 ptr1 = s->picture.data[0] + top * linesize + left;
115 ptr = ptr1; 115 ptr = ptr1;
116 pass = 0; 116 pass = 0;
117 y1 = 0; 117 y1 = 0;
118 for (y = 0; y < height; y++) { 118 for (y = 0; y < height; y++) {
119 ff_lzw_decode(s->lzw, ptr, width); 119 ff_lzw_decode(s->lzw, ptr, width);