]> git.imager.perl.org - imager.git/blobdiff - raw.c
-document that you don't want the FT2 freetype.h in the include path
[imager.git] / raw.c
diff --git a/raw.c b/raw.c
index 0d0868b303644326a9d8a939800d2765f0d21016..90eb487b77a5b6fb92c8c427fb72f758332d30e0 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -65,6 +65,8 @@ i_readraw_wiol(io_glue *ig, int x, int y, int datachannels, int storechannels, i
          ig, x, y, datachannels, storechannels, intrl));
   
   im = i_img_empty_ch(NULL,x,y,storechannels);
+  if (!im)
+    return NULL;
   
   inbuflen = im->xsize*datachannels;
   ilbuflen = inbuflen;
@@ -92,6 +94,9 @@ i_readraw_wiol(io_glue *ig, int x, int y, int datachannels, int storechannels, i
   myfree(inbuffer);
   if (intrl != 0) myfree(ilbuffer);
   if (datachannels != storechannels) myfree(exbuffer);
+
+  i_tags_add(&im->tags, "i_format", 0, "raw", -1, 0);
+
   return im;
 }