diff options
-rw-r--r-- | libavformat/sapenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sapenc.c b/libavformat/sapenc.c index 82a6ef67fd..c725ce3544 100644 --- a/libavformat/sapenc.c +++ b/libavformat/sapenc.c @@ -134,7 +134,7 @@ static int sap_write_header(AVFormatContext *s) freeaddrinfo(ai); } - contexts = av_mallocz(sizeof(AVFormatContext*) * s->nb_streams); + contexts = av_mallocz_array(s->nb_streams, sizeof(AVFormatContext*)); if (!contexts) { ret = AVERROR(ENOMEM); goto fail; |