ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Jul 21 
03:18:56 2014 +0200| [437da3e349c2acbf1ce6f565ef71b51bcf66086e] | committer: 
Michael Niedermayer

avfilter/vf_owdenoise: use av_malloc_array()

Signed-off-by: Michael Niedermayer <michae...@gmx.at>

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

 libavfilter/vf_owdenoise.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_owdenoise.c b/libavfilter/vf_owdenoise.c
index 95ba43b..5b47f76 100644
--- a/libavfilter/vf_owdenoise.c
+++ b/libavfilter/vf_owdenoise.c
@@ -293,7 +293,7 @@ static int config_input(AVFilterLink *inlink)
     s->linesize = FFALIGN(inlink->w, 16);
     for (j = 0; j < 4; j++) {
         for (i = 0; i <= s->depth; i++) {
-            s->plane[i][j] = av_malloc(s->linesize * h * 
sizeof(s->plane[0][0][0]));
+            s->plane[i][j] = av_malloc_array(s->linesize, h * 
sizeof(s->plane[0][0][0]));
             if (!s->plane[i][j])
                 return AVERROR(ENOMEM);
         }

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to