summaryrefslogtreecommitdiffstats
path: root/libhb/deca52.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r--libhb/deca52.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c
index 0df250fe9..9ad603861 100644
--- a/libhb/deca52.c
+++ b/libhb/deca52.c
@@ -373,10 +373,13 @@ static hb_buffer_t* Decode(hb_work_object_t *w)
}
}
}
- if (hb_audio_resample_update(pv->resample, AV_SAMPLE_FMT_FLT,
- pv->channel_layout,
- (double)pv->state->slev,
- (double)pv->state->clev, pv->nchannels))
+ hb_audio_resample_set_channel_layout(pv->resample,
+ pv->channel_layout,
+ pv->nchannels);
+ hb_audio_resample_set_mix_levels(pv->resample,
+ (double)pv->state->slev,
+ (double)pv->state->clev);
+ if (hb_audio_resample_update(pv->resample))
{
hb_log("deca52: hb_audio_resample_update() failed");
hb_buffer_close(&flt);