int FileEXR::read_frame(VFrame *frame, VFrame *data)
{
+
+ try {
+
Imf::setGlobalThreadCount(file->cpus);
EXRIStream exr_stream((char*)data->get_data(), data->get_compressed_size());
Imf::InputFile file(exr_stream);
}
}
return 0;
+ } catch (const std::exception &e) {
+ std::cerr << "error reading EXR image file:" << e.what() << std::endl;
+ return 1;
+ }
}