diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-23 03:56:13 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-23 03:56:13 +0000 |
commit | 6de727244c559c4565ec88b96da1f4f6269c2819 (patch) | |
tree | 06b3658089295d76d10ebf64d45d5cf01a6f28dd /libavcodec | |
parent | 6bf8b047640e9e8af726f21f146876c2c1f26f8d (diff) | |
download | ffmpeg-6de727244c559c4565ec88b96da1f4f6269c2819.tar.gz |
Do declaration and initialization separately in elbg.c
to workaround an ICC bug.
Originally committed as revision 14342 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/elbg.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/elbg.c b/libavcodec/elbg.c index d56a0c3573..87ff0236b7 100644 --- a/libavcodec/elbg.c +++ b/libavcodec/elbg.c @@ -249,9 +249,13 @@ static void try_shift_candidate(elbg_data *elbg, int idx[3]) 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]]; |