Commit aa7a646e authored by michael's avatar michael

Fix another 1000l bug in the mono input code.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27590 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 573a8806
......@@ -2148,8 +2148,8 @@ static inline void RENAME(mono2Y)(uint8_t *dst, uint8_t *src, long width, int fo
int i, j;
for (i=0; i<width/8; i++){
int d= format == PIX_FMT_MONOBLACK ? src[i] : ~src[i];
for(j=7; j>=0; j--)
dst[i]= ((d>>j)&1)*255;
for(j=0; j<8; j++)
dst[8*i+j]= ((d>>(7-j))&1)*255;
}
}
......
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