Skip to content
Browse files

jpeg: fix logical error

  • Loading branch information...
1 parent eb7ed3a commit 8b0eba6cbdb0b19adeeb755569162880c4f81cd4 theuni committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/guilib/JpegIO.cpp
View
2 xbmc/guilib/JpegIO.cpp
@@ -212,7 +212,7 @@ bool CJpegIO::Open(const CStdString &texturePath, unsigned int minx, unsigned in
m_cinfo.scale_num--;
break;
}
- if (m_cinfo.output_width >= m_minx || m_cinfo.output_height >= m_miny)
+ if (m_cinfo.output_width >= m_minx && m_cinfo.output_height >= m_miny)
break;
}
jpeg_calc_output_dimensions(&m_cinfo);

0 comments on commit 8b0eba6

Please sign in to comment.
Something went wrong with that request. Please try again.