Fixed 2 new Android build warnings
This commit is contained in:
@@ -382,12 +382,11 @@ bool JpegDecoder::readData( Mat& img )
|
||||
bool result = false;
|
||||
int step = (int)img.step;
|
||||
bool color = img.channels() > 1;
|
||||
JpegState* state = (JpegState*)m_state;
|
||||
|
||||
if( state && m_width && m_height )
|
||||
if( m_state && m_width && m_height )
|
||||
{
|
||||
jpeg_decompress_struct* cinfo = &state->cinfo;
|
||||
JpegErrorMgr* jerr = &state->jerr;
|
||||
jpeg_decompress_struct* cinfo = &((JpegState*)m_state)->cinfo;
|
||||
JpegErrorMgr* jerr = &((JpegState*)m_state)->jerr;
|
||||
JSAMPARRAY buffer = 0;
|
||||
|
||||
if( setjmp( jerr->setjmp_buffer ) == 0 )
|
||||
|
Reference in New Issue
Block a user