Commit e4dc479e authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #6088 from mshabunin:fix-exif-parsing

parents afdcfccd 112aa491
...@@ -245,7 +245,10 @@ void ExifReader::parseExif() ...@@ -245,7 +245,10 @@ void ExifReader::parseExif()
*/ */
Endianess_t ExifReader::getFormat() const Endianess_t ExifReader::getFormat() const
{ {
if( m_data[0] != m_data[1] ) if (m_data.size() < 1)
return NONE;
if( m_data.size() > 1 && m_data[0] != m_data[1] )
{ {
return NONE; return NONE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment