diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-06-30 05:08:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-30 05:08:16 +0200 |
commit | ca384d708b74b8b8105b7fe5707645f6824e3cea (patch) | |
tree | a6a1453d309a1e007b24704abf9ccea5fc4aa936 /libavformat | |
parent | 418e5768c68b8688c12e30f2e017688c97249e85 (diff) | |
download | ffmpeg-ca384d708b74b8b8105b7fe5707645f6824e3cea.tar.gz |
avformat/rtsp: use av_malloc_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index dfd0f83ab0..5212dde6bf 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -658,7 +658,7 @@ int ff_sdp_parse(AVFormatContext *s, const char *content) av_free(s1->default_exclude_source_addrs[i]); av_freep(&s1->default_exclude_source_addrs); - rt->p = av_malloc(sizeof(struct pollfd)*2*(rt->nb_rtsp_streams+1)); + rt->p = av_malloc_array(rt->nb_rtsp_streams + 1, sizeof(struct pollfd) * 2); if (!rt->p) return AVERROR(ENOMEM); return 0; } |