Mercurial > libpostproc.hg
changeset 137:218f5063fa65 libpostproc tip
Fix use of uninitialized data: A array element can not be
used to initialized another array element of the same array.
author | reimar |
---|---|
date | Sat, 24 Jul 2010 11:55:22 +0000 |
parents | fe0bf26c4c81 |
children | |
files | postprocess_altivec_template.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/postprocess_altivec_template.c Wed Jun 30 15:38:06 2010 +0000 +++ b/postprocess_altivec_template.c Sat Jul 24 11:55:22 2010 +0000 @@ -62,10 +62,11 @@ vector by assuming (stride % 16) == 0, unfortunately this is not always true. */ + short data_0 = ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1; DECLARE_ALIGNED(16, short, data)[8] = { - ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1, - data[0] * 2 + 1, + data_0, + data_0 * 2 + 1, c->QP * 2, c->QP * 4 };