diff options
Diffstat (limited to 'libavcodec/tests')
-rw-r--r-- | libavcodec/tests/snowenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/tests/snowenc.c b/libavcodec/tests/snowenc.c index d5f94e8a61..07af1f2cf9 100644 --- a/libavcodec/tests/snowenc.c +++ b/libavcodec/tests/snowenc.c @@ -37,8 +37,8 @@ int main(void){ s.spatial_decomposition_count=6; s.spatial_decomposition_type=1; - s.temp_dwt_buffer = av_mallocz_array(width, sizeof(DWTELEM)); - s.temp_idwt_buffer = av_mallocz_array(width, sizeof(IDWTELEM)); + s.temp_dwt_buffer = av_calloc(width, sizeof(*s.temp_dwt_buffer)); + s.temp_idwt_buffer = av_calloc(width, sizeof(*s.temp_idwt_buffer)); if (!s.temp_dwt_buffer || !s.temp_idwt_buffer) { fprintf(stderr, "Failed to allocate memory\n"); |