diff --git a/src/dds.imageio/ddsinput.cpp b/src/dds.imageio/ddsinput.cpp index d6c120419d..7508f83a77 100644 --- a/src/dds.imageio/ddsinput.cpp +++ b/src/dds.imageio/ddsinput.cpp @@ -357,6 +357,7 @@ DDSInput::open(const std::string& name, ImageSpec& newspec) if (!ioproxy_use_or_open(name)) return false; + ioseek(0); static_assert(sizeof(dds_header) == 128, "dds header size does not match"); if (!ioread(&m_dds, sizeof(m_dds), 1)) diff --git a/src/psd.imageio/psdinput.cpp b/src/psd.imageio/psdinput.cpp index 303b52e931..3bb24b04de 100644 --- a/src/psd.imageio/psdinput.cpp +++ b/src/psd.imageio/psdinput.cpp @@ -546,6 +546,7 @@ PSDInput::open(const std::string& name, ImageSpec& newspec) m_filename = name; if (!ioproxy_use_or_open(name)) return false; + ioseek(0); // File Header if (!load_header()) {