]> Creatis software - gdcm.git/commitdiff
BUG: Fix seg fault
authormalaterre <malaterre>
Wed, 26 Oct 2005 17:55:04 +0000 (17:55 +0000)
committermalaterre <malaterre>
Wed, 26 Oct 2005 17:55:04 +0000 (17:55 +0000)
src/gdcmmpeg2/src/mpeg2enc/readpic.c

index c65e7e75c16fcb76808ed0982055f0dd90a0b378..2549d5e2aa241fedc226b3cf8d40b6f9153d8606 100644 (file)
@@ -303,7 +303,7 @@ unsigned char *src, *dst;
         ip3 = (i<width-3) ? i+3 : width-1;
         ip4 = (i<width-4) ? i+4 : width-1;
         ip5 = (i<width-5) ? i+5 : width-1;
-        ip6 = (i<width-5) ? i+6 : width-1;
+        ip6 = (i<width-6) ? i+6 : width-1;
 
         /* FIR filter with 0.5 sample interval phase shift */
         dst[i>>1] = clp[(int)(228*(src[i]+src[ip1])