diff --git a/src/pnm.imageio/pnminput.cpp b/src/pnm.imageio/pnminput.cpp index dfcc38c3b3..1b08c0d35e 100644 --- a/src/pnm.imageio/pnminput.cpp +++ b/src/pnm.imageio/pnminput.cpp @@ -372,6 +372,7 @@ PNMInput::open(const std::string& name, ImageSpec& newspec) m_file_contents.resize(m_io->size()); m_io->pread(m_file_contents.data(), m_file_contents.size(), 0); m_remaining = string_view(m_file_contents.data(), m_file_contents.size()); + m_pfm_flip = false; if (!read_file_header()) return false;