Mercurial > libavcodec.hg
changeset 7353:3d9cdb5a4f01 libavcodec
Do declaration and initialization separately in elbg.c
to workaround an ICC bug.
author | vitor |
---|---|
date | Wed, 23 Jul 2008 03:56:13 +0000 |
parents | c2318e551ff5 |
children | 456957d86106 |
files | elbg.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/elbg.c Wed Jul 23 03:55:37 2008 +0000 +++ b/elbg.c Wed Jul 23 03:56:13 2008 +0000 @@ -249,9 +249,13 @@ int j, k, olderror=0, newerror, cont=0; int newutility[3]; int newcentroid[3][elbg->dim]; - int *newcentroid_ptrs[3] = { newcentroid[0], newcentroid[1], newcentroid[2] }; + int *newcentroid_ptrs[3]; cell *tempcell; + newcentroid_ptrs[0] = newcentroid[0]; + newcentroid_ptrs[1] = newcentroid[1]; + newcentroid_ptrs[2] = newcentroid[2]; + for (j=0; j<3; j++) olderror += elbg->utility[idx[j]];