TIFFReadRGBAImage doesn't actually return errors unless you ask it to.
[theora.git] / examples / tiff2theora.c
index ffd7b10..37fd9d5 100644 (file)
@@ -410,7 +410,7 @@ tiff_read(const char *pathname,
     TIFFClose(tiff);
     return 1;
   }
-  if(!TIFFReadRGBAImage(tiff, width, height, raster, 0)) {
+  if(!TIFFReadRGBAImage(tiff, width, height, raster, 1)) {
     fprintf(stderr, "%s: error: couldn't read tiff data.\n", pathname);
     free(raster);
     TIFFClose(tiff);