flacenc: initialize sums matrix
authorVittorio Giovara <vittorio.giovara@gmail.com>
Wed, 28 Jan 2015 14:41:02 +0000 (14:41 +0000)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Thu, 29 Jan 2015 17:33:38 +0000 (17:33 +0000)
CC: libav-stable@libav.org
Bug-Id: CID 703821

libavcodec/flacenc.c

index 1160da2..2277cf3 100644 (file)
@@ -617,7 +617,7 @@ static uint64_t calc_rice_params(RiceContext *rc, int pmin, int pmax,
     int opt_porder;
     RiceContext tmp_rc;
     uint32_t *udata;
-    uint64_t sums[MAX_PARTITION_ORDER+1][MAX_PARTITIONS];
+    uint64_t sums[MAX_PARTITION_ORDER + 1][MAX_PARTITIONS] = { { 0 } };
 
     assert(pmin >= 0 && pmin <= MAX_PARTITION_ORDER);
     assert(pmax >= 0 && pmax <= MAX_PARTITION_ORDER);