[FFmpeg-cvslog] vc2enc: correctly zero out coefficient array padding

Rostislav Pehlivanov git at videolan.org
Mon Mar 28 18:05:29 CEST 2016


ffmpeg | branch: release/3.0 | Rostislav Pehlivanov <atomnuker at gmail.com> | Fri Feb 26 12:21:36 2016 +0000| [f01919b57af0ff99820b6e8285d6fe546d3ed938] | committer: Rostislav Pehlivanov

vc2enc: correctly zero out coefficient array padding

Credit for figuring this out goes to James Darnley.

Signed-off-by: Rostislav Pehlivanov <atomnuker at gmail.com>
(cherry picked from commit 3ef10406e19663a78791ed1b38178fb00d4c7d88)

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

 libavcodec/vc2enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vc2enc.c b/libavcodec/vc2enc.c
index f42b10f..bf3f3a9 100644
--- a/libavcodec/vc2enc.c
+++ b/libavcodec/vc2enc.c
@@ -867,7 +867,7 @@ static int dwt_plane(AVCodecContext *avctx, void *arg)
         }
     }
 
-    memset(buf, 0, (p->coef_stride*p->dwt_height - p->height*p->width)*sizeof(dwtcoef));
+    memset(buf, 0, p->coef_stride * (p->dwt_height - p->height) * sizeof(dwtcoef));
 
     for (level = s->wavelet_depth-1; level >= 0; level--) {
         const SubBand *b = &p->band[level][0];



More information about the ffmpeg-cvslog mailing list