10l predictor should not skip first line
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 26 Oct 2006 04:06:08 +0000 (04:06 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 26 Oct 2006 04:06:08 +0000 (04:06 +0000)
Originally committed as revision 6794 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/tiff.c

index 4fa54bb7b1a0e9166c3dcdbcee531fce5dc4bcea..41182d009190d7313dc1e97d728e185293d31725 100644 (file)
@@ -335,7 +335,7 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
             return -1;
         }
         if(value == 2){
-            src = pic->data[0] + pic->linesize[0];
+            src = pic->data[0];
             stride = pic->linesize[0];
             soff = s->bpp >> 3;
             ssize = s->width * soff;