]> Creatis software - gdcm.git/blobdiff - src/gdcmmpeg2/src/mpeg2enc/readpic.c
Allow user to create mutiframes
[gdcm.git] / 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])