diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-24 11:55:22 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2010-07-24 11:55:22 +0000 |
commit | a2a17d3f879436182bcc52c2986a56acd81e7e92 (patch) | |
tree | 71aa8ce7faec6d049a3fdb902dc97cdc352fa75e /libpostproc | |
parent | 5a55d5b592540b0acbf19c9988ac930635f0ecb3 (diff) | |
download | ffmpeg-a2a17d3f879436182bcc52c2986a56acd81e7e92.tar.gz |
Fix use of uninitialized data: A array element can not be
used to initialized another array element of the same array.
Originally committed as revision 24479 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libpostproc')
-rw-r--r-- | libpostproc/postprocess_altivec_template.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpostproc/postprocess_altivec_template.c b/libpostproc/postprocess_altivec_template.c index c5851d9664..c53ebc0b4a 100644 --- a/libpostproc/postprocess_altivec_template.c +++ b/libpostproc/postprocess_altivec_template.c @@ -62,10 +62,11 @@ static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c) 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 }; |