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/encavcodecaudio.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/encavcodecaudio.c')
-rw-r--r-- | libhb/encavcodecaudio.c | 5 |
1 files changed, 2 insertions, 3 deletions
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); |