Unified · Split
| @@ -46,7 +46,7 @@ FFTContext *av_fft_init(int nbits, int inverse) · 45 unmodified lines | ||
| 46 | 46 | { |
| 47 | 47 | int ret; |
| 48 | 48 | float scale = 1.0f; |
| 49 | − AVTXWrapper *s = av_malloc(sizeof(*s)); | |
| 49 | + AVTXWrapper *s = av_mallocz(sizeof(*s)); | |
| 50 | 50 | if (!s) |
| 51 | 51 | return NULL; |
| 52 | 52 | |
| @@ -85,7 +85,7 @@ FFTContext *av_mdct_init(int nbits, int inverse, double scale) · 32 unmodified lines | ||
| 85 | 85 | { |
| 86 | 86 | int ret; |
| 87 | 87 | float scale_f = scale; |
| 88 | − AVTXWrapper *s = av_malloc(sizeof(*s)); | |
| 88 | + AVTXWrapper *s = av_mallocz(sizeof(*s)); | |
| 89 | 89 | if (!s) |
| 90 | 90 | return NULL; |
| 91 | 91 | |
| @@ -146,7 +146,7 @@ RDFTContext *av_rdft_init(int nbits, enum RDFTransformType trans) · 54 unmodified lines | ||
| 146 | 146 | if (trans != IDFT_C2R && trans != DFT_R2C) |
| 147 | 147 | return NULL; |
| 148 | 148 | |
| 149 | − s = av_malloc(sizeof(*s)); | |
| 149 | + s = av_mallocz(sizeof(*s)); | |
| 150 | 150 | if (!s) |
| 151 | 151 | return NULL; |
| 152 | 152 | |
| @@ -199,7 +199,7 @@ DCTContext *av_dct_init(int nbits, enum DCTTransformType inverse) · 46 unmodified lines | ||
| 199 | 199 | [DST_I] = AV_TX_FLOAT_DST_I, |
| 200 | 200 | }; |
| 201 | 201 | |
| 202 | − AVTXWrapper *s = av_malloc(sizeof(*s)); | |
| 202 | + AVTXWrapper *s = av_mallocz(sizeof(*s)); | |
| 203 | 203 | if (!s) |
| 204 | 204 | return NULL; |
| 205 | 205 | |