[FFmpeg-cvslog] avformat/nutdec: Use av_malloc_array()
Michael Niedermayer
git at videolan.org
Mon Mar 30 05:04:57 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 30 04:32:58 2015 +0200| [4a1081161704eabb65a5aa0569172bae9f423dca] | committer: Michael Niedermayer
avformat/nutdec: Use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4a1081161704eabb65a5aa0569172bae9f423dca
---
libavformat/nutdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 00e86bb..5b243dc 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -248,7 +248,7 @@ static int decode_main_header(NUTContext *nut)
}
GET_V(nut->time_base_count, tmp > 0 && tmp < INT_MAX / sizeof(AVRational));
- nut->time_base = av_malloc(nut->time_base_count * sizeof(AVRational));
+ nut->time_base = av_malloc_array(nut->time_base_count, sizeof(AVRational));
if (!nut->time_base)
return AVERROR(ENOMEM);
More information about the ffmpeg-cvslog
mailing list