Mercurial > mplayer.hg
changeset 27558:f4cab7872474
Fix another 1000l bug in the mono input code.
author | michael |
---|---|
date | Fri, 12 Sep 2008 18:05:57 +0000 |
parents | a594051dc796 |
children | 21590d0bb4e6 |
files | libswscale/swscale_template.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale_template.c Fri Sep 12 17:51:13 2008 +0000 +++ b/libswscale/swscale_template.c Fri Sep 12 18:05:57 2008 +0000 @@ -2148,8 +2148,8 @@ 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; } }