]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 5 Jan 2011 15:45:02 +0000 (15:45 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 5 Jan 2011 15:45:02 +0000 (15:45 +0000)
coders/png.c

index 90bbd5390a180607fcf2afa5542f14c295d60df1..c4c862452642224106ad0db61c348ef48085a118 100644 (file)
@@ -2697,9 +2697,9 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
               if (ping_color_type == 4)
                 {
                   q->opacity=(*p << 8) | *(p+1);
-                  q->opacity*=65537U;
+                  q->opacity*=65537L;
                   q->opacity=(Quantum) GetAlphaPixelComponent(q);
-                  if (p->opacity != OpaqueOpacity)
+                  if (q->opacity != OpaqueOpacity)
                     found_transparent_pixel = MagickTrue; 
                   p+=2;
                   q++;