diff options
author | Rodeo <[email protected]> | 2012-08-27 21:17:59 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-08-27 21:17:59 +0000 |
commit | d5cd2171f6bd69ec44d4568926728b890f7d1f97 (patch) | |
tree | 025fb0ecb885310f114eeed654ff165d539d3c17 /libhb/deca52.c | |
parent | 09a30794cb6388909e273f0801ede2e6001bf955 (diff) |
hb_audio_resample: move setters out of hb_audio_resample_update(), to dedicated functions.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4922 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r-- | libhb/deca52.c | 11 |
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); |