diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-13 15:04:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-13 15:04:15 +0100 |
commit | 88a46fa8c9e5b9aeefbd1a82dcb1a18e0f1e8b7b (patch) | |
tree | 20b093f98846b5674a645fcef314dc45f4e59c05 /libavcodec/snowenc.c | |
parent | 482761b85a686c24dda18780a1c7e1e82c45e43c (diff) | |
download | ffmpeg-88a46fa8c9e5b9aeefbd1a82dcb1a18e0f1e8b7b.tar.gz |
avcodec/snowenc-test: use av_mallocz_array()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 73b544a734..cd8fef3e9e 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -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"); |