Commit 089aac61 authored by berak's avatar berak

imgcodecs: fix 4 reading channel bmp images

parent a9effeeb
...@@ -481,8 +481,10 @@ decode_rle8_bad: ; ...@@ -481,8 +481,10 @@ decode_rle8_bad: ;
if( !color ) if( !color )
icvCvt_BGRA2Gray_8u_C4C1R( src, 0, data, 0, cvSize(m_width,1) ); icvCvt_BGRA2Gray_8u_C4C1R( src, 0, data, 0, cvSize(m_width,1) );
else else if( img.channels() == 3 )
icvCvt_BGRA2BGR_8u_C4C3R( src, 0, data, 0, cvSize(m_width,1) ); icvCvt_BGRA2BGR_8u_C4C3R(src, 0, data, 0, cvSize(m_width, 1));
else if( img.channels() == 4 )
memcpy(data, src, m_width * 4);
} }
result = true; result = true;
break; break;
......
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