From: Mike M. <tm...@us...> - 2002-12-22 23:20:24
|
Update of /cvsroot/xine/xine-lib/src/xine-utils In directory sc8-pr-cvs1:/tmp/cvs-serv13489 Modified Files: color.c Log Message: fix MMX color converter when width is divisible by 6 Index: color.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-utils/color.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- color.c 4 Dec 2002 05:33:40 -0000 1.11 +++ color.c 22 Dec 2002 23:20:21 -0000 1.12 @@ -321,8 +321,12 @@ residual_filter_loops = (yuv_planes->row_width % 6) / 2; shifter[0] = residual_filter_loops * 8; - if (!residual_filter_loops) + /* if the width is divisible by 6, apply 3 residual filters and perform + * one less primary loop */ + if (!residual_filter_loops) { residual_filter_loops = 3; + block_loops--; + } /* set up some MMX registers: * mm0 = 0, mm7 = color filter */ |