avformat/smoothstreamingenc: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		@@ -303,7 +303,7 @@ static int ism_write_header(AVFormatContext *s)
 | 
				
			|||||||
        goto fail;
 | 
					        goto fail;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    c->streams = av_mallocz(sizeof(*c->streams) * s->nb_streams);
 | 
					    c->streams = av_mallocz_array(s->nb_streams, sizeof(*c->streams));
 | 
				
			||||||
    if (!c->streams) {
 | 
					    if (!c->streams) {
 | 
				
			||||||
        ret = AVERROR(ENOMEM);
 | 
					        ret = AVERROR(ENOMEM);
 | 
				
			||||||
        goto fail;
 | 
					        goto fail;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user