[FFmpeg-cvslog] avfilter/vf_pp7: use av_malloc_array()
Michael Niedermayer
git at videolan.org
Sat Jan 10 17:09:05 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jan 10 16:03:46 2015 +0100| [1673436d85d6caf7090e543d586adef03efa57f6] | committer: Michael Niedermayer
avfilter/vf_pp7: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1673436d85d6caf7090e543d586adef03efa57f6
---
libavfilter/vf_pp7.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_pp7.c b/libavfilter/vf_pp7.c
index bb590a2..ac0c117 100644
--- a/libavfilter/vf_pp7.c
+++ b/libavfilter/vf_pp7.c
@@ -295,7 +295,7 @@ static int config_input(AVFilterLink *inlink)
pp7->vsub = desc->log2_chroma_h;
pp7->temp_stride = FFALIGN(inlink->w + 16, 16);
- pp7->src = av_malloc(pp7->temp_stride * (h + 8) * sizeof(uint8_t));
+ pp7->src = av_malloc_array(pp7->temp_stride, (h + 8) * sizeof(uint8_t));
if (!pp7->src)
return AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list