Removed direct tiff writing to in-memory buffers if libtiff is used
authorIlya Lysenkov <no@email>
Thu, 2 Jun 2011 15:16:35 +0000 (15:16 +0000)
committerIlya Lysenkov <no@email>
Thu, 2 Jun 2011 15:16:35 +0000 (15:16 +0000)
modules/highgui/src/grfmt_tiff.cpp

index d142bfe..1db9624 100644 (file)
@@ -368,7 +368,11 @@ bool  TiffDecoder::readData( Mat& img )
 TiffEncoder::TiffEncoder()
 {
     m_description = "TIFF Files (*.tiff;*.tif)";
+#ifdef HAVE_TIFF
+    m_buf_supported = false;
+#else
     m_buf_supported = true;
+#endif
 }
 
 TiffEncoder::~TiffEncoder()