[FFmpeg-cvslog] r24479 - trunk/libpostproc/postprocess_altivec_template.c
reimar
subversion
Sat Jul 24 13:55:23 CEST 2010
Author: reimar
Date: Sat Jul 24 13:55:22 2010
New Revision: 24479
Log:
Fix use of uninitialized data: A array element can not be
used to initialized another array element of the same array.
Modified:
trunk/libpostproc/postprocess_altivec_template.c
Modified: trunk/libpostproc/postprocess_altivec_template.c
==============================================================================
--- trunk/libpostproc/postprocess_altivec_template.c Sat Jul 24 11:04:44 2010 (r24478)
+++ trunk/libpostproc/postprocess_altivec_template.c Sat Jul 24 13:55:22 2010 (r24479)
@@ -62,10 +62,11 @@ static inline int vertClassify_altivec(u
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
};
More information about the ffmpeg-cvslog
mailing list