Mercurial > libpostproc.hg
comparison postprocess_altivec_template.c @ 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 | 51571e34b760 |
| children |
comparison
equal
deleted
inserted
replaced
| 136:fe0bf26c4c81 | 137:218f5063fa65 |
|---|---|
| 60 this code makes no assumption on src or stride. | 60 this code makes no assumption on src or stride. |
| 61 One could remove the recomputation of the perm | 61 One could remove the recomputation of the perm |
| 62 vector by assuming (stride % 16) == 0, unfortunately | 62 vector by assuming (stride % 16) == 0, unfortunately |
| 63 this is not always true. | 63 this is not always true. |
| 64 */ | 64 */ |
| 65 short data_0 = ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1; | |
| 65 DECLARE_ALIGNED(16, short, data)[8] = | 66 DECLARE_ALIGNED(16, short, data)[8] = |
| 66 { | 67 { |
| 67 ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1, | 68 data_0, |
| 68 data[0] * 2 + 1, | 69 data_0 * 2 + 1, |
| 69 c->QP * 2, | 70 c->QP * 2, |
| 70 c->QP * 4 | 71 c->QP * 4 |
| 71 }; | 72 }; |
| 72 int numEq; | 73 int numEq; |
| 73 uint8_t *src2 = src; | 74 uint8_t *src2 = src; |
