mirror of https://git.ffmpeg.org/ffmpeg.git
swresample/swresample: Use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f613f238f9
commit
1a10134e20
|
@ -352,7 +352,7 @@ int swri_realloc_audio(AudioData *a, int count){
|
||||||
av_assert0(a->bps);
|
av_assert0(a->bps);
|
||||||
av_assert0(a->ch_count);
|
av_assert0(a->ch_count);
|
||||||
|
|
||||||
a->data= av_mallocz(countb*a->ch_count);
|
a->data= av_mallocz_array(countb, a->ch_count);
|
||||||
if(!a->data)
|
if(!a->data)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
for(i=0; i<a->ch_count; i++){
|
for(i=0; i<a->ch_count; i++){
|
||||||
|
|
Loading…
Reference in New Issue