diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-27 20:30:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-27 20:42:50 +0200 |
commit | 5be8c276946d9228cddfa8049bd49eeaf542eb81 (patch) | |
tree | 21a582f444fb5a04227972ee8e771ba9ceb6ccdf | |
parent | 2870617853b5456e6096c8afa99ba4d5f00cb8a5 (diff) | |
download | ffmpeg-5be8c276946d9228cddfa8049bd49eeaf542eb81.tar.gz |
avformat/rtspdec: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/rtspdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index af20465783..51c80c61eb 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -696,7 +696,7 @@ static int rtsp_read_header(AVFormatContext *s) return ret; rt->real_setup_cache = !s->nb_streams ? NULL : - av_mallocz(2 * s->nb_streams * sizeof(*rt->real_setup_cache)); + av_mallocz_array(s->nb_streams, 2 * sizeof(*rt->real_setup_cache)); if (!rt->real_setup_cache && s->nb_streams) return AVERROR(ENOMEM); rt->real_setup = rt->real_setup_cache + s->nb_streams; |