version update, undo fix
[goodguy/history.git] / cinelerra-5.1 / cinelerra / fileexr.C
index a62b1b3c6dbc2f6ef4530080cc3324f11b3620b6..33b1bdd2a9b11f16463deea64c6fa6b65c3e382b 100644 (file)
@@ -19,6 +19,8 @@
  *
  */
 
+#ifdef HAVE_OPENEXR
+
 #include "asset.h"
 #include "bcsignals.h"
 #include "clip.h"
@@ -466,12 +468,8 @@ int FileEXR::write_frame(VFrame *frame, VFrame *data, FrameWriterUnit *unit)
 
        if(frame->get_color_model() != native_cmodel)
        {
-               if(!exr_unit->temp_frame) exr_unit->temp_frame = new VFrame(0,
-                       -1,
-                       asset->width,
-                       asset->height,
-                       native_cmodel,
-                       -1);
+               if(!exr_unit->temp_frame) exr_unit->temp_frame =
+                       new VFrame(asset->width, asset->height, native_cmodel, 0);
                BC_CModels::transfer(exr_unit->temp_frame->get_rows(), /* Leave NULL if non existent */
                        frame->get_rows(),
                        exr_unit->temp_frame->get_y(), /* Leave NULL if non existent */
@@ -662,3 +660,4 @@ int EXRCompressionItem::handle_event()
        return 0;
 }
 
+#endif