[FFmpeg-cvslog] flacenc: initialize sums matrix
Vittorio Giovara
git at videolan.org
Thu Jan 29 22:41:29 CET 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Jan 28 14:41:02 2015 +0000| [70d246d5cc3d214da11f711d997d8cbd8c3a23d1] | committer: Vittorio Giovara
flacenc: initialize sums matrix
CC: libav-stable at libav.org
Bug-Id: CID 703821
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=70d246d5cc3d214da11f711d997d8cbd8c3a23d1
---
libavcodec/flacenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index 1160da2..2277cf3 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list