[FFmpeg-cvslog] avfilter/vf_dctdnoiz: Use av_malloc_array()
Paul B Mahol
git at videolan.org
Sun Feb 1 17:48:20 CET 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jan 29 14:15:21 2015 +0000| [d0045312c3457566dbac0b2495b5a8d15ae7efcf] | committer: Paul B Mahol
avfilter/vf_dctdnoiz: Use av_malloc_array()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0045312c3457566dbac0b2495b5a8d15ae7efcf
---
libavfilter/vf_dctdnoiz.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/vf_dctdnoiz.c b/libavfilter/vf_dctdnoiz.c
index 5cce9cb..61438bb 100644
--- a/libavfilter/vf_dctdnoiz.c
+++ b/libavfilter/vf_dctdnoiz.c
@@ -513,9 +513,9 @@ static int config_input(AVFilterLink *inlink)
s->p_linesize = linesize = FFALIGN(s->pr_width, 32);
for (i = 0; i < 2; i++) {
- s->cbuf[i][0] = av_malloc(linesize * s->pr_height * sizeof(*s->cbuf[i][0]));
- s->cbuf[i][1] = av_malloc(linesize * s->pr_height * sizeof(*s->cbuf[i][1]));
- s->cbuf[i][2] = av_malloc(linesize * s->pr_height * sizeof(*s->cbuf[i][2]));
+ s->cbuf[i][0] = av_malloc_array(linesize * s->pr_height, sizeof(*s->cbuf[i][0]));
+ s->cbuf[i][1] = av_malloc_array(linesize * s->pr_height, sizeof(*s->cbuf[i][1]));
+ s->cbuf[i][2] = av_malloc_array(linesize * s->pr_height, sizeof(*s->cbuf[i][2]));
if (!s->cbuf[i][0] || !s->cbuf[i][1] || !s->cbuf[i][2])
return AVERROR(ENOMEM);
}
More information about the ffmpeg-cvslog
mailing list