Permalink
Browse files

jpeg: fix logical error

  • Loading branch information...
theuni
theuni committed Nov 28, 2011
1 parent eb7ed3a commit 8b0eba6cbdb0b19adeeb755569162880c4f81cd4
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/guilib/JpegIO.cpp
View
@@ -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.