[FFmpeg-cvslog] avformat/matroskadec: Use av_malloc_array() for index_entries
Michael Niedermayer
git at videolan.org
Sun Jan 25 00:35:51 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jan 25 00:26:53 2015 +0100| [a1062e1437c0f5432cdcb03ac8931b30f3b9d170] | committer: Michael Niedermayer
avformat/matroskadec: Use av_malloc_array() for index_entries
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a1062e1437c0f5432cdcb03ac8931b30f3b9d170
---
libavformat/matroskadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 2645797..8ccf88c 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3313,7 +3313,7 @@ static int webm_dash_manifest_cues(AVFormatContext *s)
// store cue point timestamps as a comma separated list for checking subsegment alignment in
// the muxer. assumes that each timestamp cannot be more than 20 characters long.
- buf = av_malloc(s->streams[0]->nb_index_entries * 20 * sizeof(char));
+ buf = av_malloc_array(s->streams[0]->nb_index_entries, 20 * sizeof(char));
if (!buf) return -1;
strcpy(buf, "");
for (i = 0; i < s->streams[0]->nb_index_entries; i++) {
More information about the ffmpeg-cvslog
mailing list