[FFmpeg-cvslog] ffprobe: Use av_malloc_array()
Michael Niedermayer
git at videolan.org
Wed May 21 16:07:45 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed May 21 15:59:22 2014 +0200| [f0211f4189a500144ca5ac4d08328439b70dabcb] | committer: Michael Niedermayer
ffprobe: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f0211f4189a500144ca5ac4d08328439b70dabcb
---
ffprobe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ffprobe.c b/ffprobe.c
index ad14fda..2380ee1 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -2740,7 +2740,7 @@ static int parse_read_intervals(const char *intervals_spec)
n++;
n++;
- read_intervals = av_malloc(n * sizeof(*read_intervals));
+ read_intervals = av_malloc_array(n, sizeof(*read_intervals));
if (!read_intervals) {
ret = AVERROR(ENOMEM);
goto end;
More information about the ffmpeg-cvslog
mailing list