summaryrefslogtreecommitdiffstats
path: root/libhb/audio_resample.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/audio_resample.c')
-rw-r--r--libhb/audio_resample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/audio_resample.c b/libhb/audio_resample.c
index ce80bc5fe..bd9cbf61c 100644
--- a/libhb/audio_resample.c
+++ b/libhb/audio_resample.c
@@ -15,7 +15,7 @@ hb_audio_resample_t* hb_audio_resample_init(enum AVSampleFormat sample_fmt,
int hb_amixdown, int do_remix,
int normalize_mix_level)
{
- hb_audio_resample_t *resample = malloc(sizeof(hb_audio_resample_t));
+ hb_audio_resample_t *resample = calloc(1, sizeof(hb_audio_resample_t));
if (resample == NULL)
{
hb_error("hb_audio_resample_init: failed to allocate resample");