avcodec/snowenc-test: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-01-13 15:04:15 +01:00
parent 482761b85a
commit 88a46fa8c9
1 changed files with 2 additions and 2 deletions

View File

@ -1919,8 +1919,8 @@ int main(void){
s.spatial_decomposition_count=6;
s.spatial_decomposition_type=1;
s.temp_dwt_buffer = av_mallocz(width * sizeof(DWTELEM));
s.temp_idwt_buffer = av_mallocz(width * sizeof(IDWTELEM));
s.temp_dwt_buffer = av_mallocz_array(width, sizeof(DWTELEM));
s.temp_idwt_buffer = av_mallocz_array(width, sizeof(IDWTELEM));
if (!s.temp_dwt_buffer || !s.temp_idwt_buffer) {
fprintf(stderr, "Failed to allocate memory\n");