From d5cd2171f6bd69ec44d4568926728b890f7d1f97 Mon Sep 17 00:00:00 2001 From: Rodeo Date: Mon, 27 Aug 2012 21:17:59 +0000 Subject: 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 --- libhb/encavcodecaudio.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libhb/encavcodecaudio.c') diff --git a/libhb/encavcodecaudio.c b/libhb/encavcodecaudio.c index 8435b022d..3a0af64d2 100644 --- a/libhb/encavcodecaudio.c +++ b/libhb/encavcodecaudio.c @@ -120,9 +120,8 @@ static int encavcodecaInit(hb_work_object_t *w, hb_job_t *job) pv->resample = hb_audio_resample_init(context->sample_fmt, context->channel_layout, AV_MATRIX_ENCODING_NONE, 0); - if (hb_audio_resample_update(pv->resample, AV_SAMPLE_FMT_FLT, - context->channel_layout, HB_MIXLEV_DEFAULT, - HB_MIXLEV_DEFAULT, context->channels)) + hb_audio_resample_set_sample_fmt(pv->resample, AV_SAMPLE_FMT_FLT); + if (hb_audio_resample_update(pv->resample)) { hb_error("encavcodecaInit: hb_audio_resample_update() failed"); hb_audio_resample_free(pv->resample); -- cgit v1.2.3