1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix another 1000l bug in the mono input code.

Originally committed as revision 27590 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
Michael Niedermayer 2008-09-12 18:05:57 +00:00
parent 6c80eb1626
commit 78454dfc01

View File

@ -2148,8 +2148,8 @@ static inline void RENAME(mono2Y)(uint8_t *dst, uint8_t *src, long width, int fo
int i, j; int i, j;
for (i=0; i<width/8; i++){ for (i=0; i<width/8; i++){
int d= format == PIX_FMT_MONOBLACK ? src[i] : ~src[i]; int d= format == PIX_FMT_MONOBLACK ? src[i] : ~src[i];
for(j=7; j>=0; j--) for(j=0; j<8; j++)
dst[i]= ((d>>j)&1)*255; dst[8*i+j]= ((d>>(7-j))&1)*255;
} }
} }