[x264-devel] [PATCH] fix uninitialised vars in x264_intra_rd_refine() for I_8x8 case

Igor Mozolevsky igor at hybrid-lab.co.uk
Mon Jun 22 21:33:09 CEST 2009


If i_satd <= i_best, i_nnz[] remains uninitialised, this patch fixes it.


Cheers,
--
Igor

--- encoder/analyse.c.orig	2009-06-22 20:23:04.000000000 +0100
+++ encoder/analyse.c	2009-06-22 20:23:24.000000000 +0100
@@ -995,7 +995,7 @@
         {
             uint64_t pels_h = 0;
             uint8_t pels_v[7];
-            uint16_t i_nnz[2];
+            uint16_t i_nnz[2] = {0};
             uint8_t *p_dst_by;
             int j;
             int cbp_luma_new = 0;


More information about the x264-devel mailing list