[FFmpeg-cvslog] Use fixed-length array in revert_mclms()

Benjamin Larsson git at videolan.org
Sun Feb 19 19:41:45 CET 2012


ffmpeg | branch: master | Benjamin Larsson <benjamin at southpole.se> | Thu Feb 16 20:09:01 2012 +0600| [7f215e3e725ddd45e6fc1e012aadcc5fd83ee1b5] | committer: Mashiat Sarker Shakkhar

Use fixed-length array in revert_mclms()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7f215e3e725ddd45e6fc1e012aadcc5fd83ee1b5
---

 libavcodec/wmalosslessdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/wmalosslessdec.c b/libavcodec/wmalosslessdec.c
index 9b54abf..30c055b 100644
--- a/libavcodec/wmalosslessdec.c
+++ b/libavcodec/wmalosslessdec.c
@@ -885,7 +885,7 @@ static void mclms_predict(WmallDecodeCtx *s, int icoef, int *pred)
 
 static void revert_mclms(WmallDecodeCtx *s, int tile_size)
 {
-    int icoef, pred[s->num_channels];
+    int icoef, pred[WMALL_MAX_CHANNELS] = {0};
     for (icoef = 0; icoef < tile_size; icoef++) {
         mclms_predict(s, icoef, pred);
         mclms_update(s, icoef, pred);



More information about the ffmpeg-cvslog mailing list