Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/modules/loaders/jpeg


Modified Files:
        evas_image_load_jpeg.c 


Log Message:


printf-- - safety valve++

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/modules/loaders/jpeg/evas_image_load_jpeg.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- evas_image_load_jpeg.c      19 Aug 2006 01:48:13 -0000      1.2
+++ evas_image_load_jpeg.c      19 Aug 2006 01:49:33 -0000      1.3
@@ -209,7 +209,12 @@
    
    w = cinfo.output_width;
    h = cinfo.output_height;
-   printf("%ix%i | %ix%i [%i]\n", w, h, im->image->w, im->image->h, im->scale);
+   
+   if ((w != im->image->w) || (h != im->image->h))
+     {
+       jpeg_destroy_decompress(&cinfo);
+       return 0;
+     }
    
 /* end head decoding */
 /* data decoding */



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to