diff options
author | Rodeo <[email protected]> | 2012-11-21 18:29:34 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-11-21 18:29:34 +0000 |
commit | 282ddc84776683667e417a62186be57b97be3eab (patch) | |
tree | fa4f2bd306b5eb06aa28af2bbe507a3f9b8b091b /libhb/declpcm.c | |
parent | 8612b1b6ab0a60a9b9cca384ca62f8a12d3cbb5b (diff) |
Improve support for planar audio.
- encavcodecaudio: use libavresample directly (instead of via the hb_audio_resample wrapper), and add support for planar output
- hb_audio_resample: add support for planar input
- hb_audio_remap: add support for planar input
- deca52: output planar float samples (no re-interleaving)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5073 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/declpcm.c')
-rw-r--r-- | libhb/declpcm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/declpcm.c b/libhb/declpcm.c index e62e042d3..03210af81 100644 --- a/libhb/declpcm.c +++ b/libhb/declpcm.c @@ -163,7 +163,7 @@ static int declpcmInit( hb_work_object_t * w, hb_job_t * job ) pv->resample = hb_audio_resample_init(AV_SAMPLE_FMT_FLT, - w->audio->config.out.mixdown, 1, + w->audio->config.out.mixdown, w->audio->config.out.normalize_mix_level); if (pv->resample == NULL) { @@ -337,7 +337,7 @@ static hb_buffer_t *Decode( hb_work_object_t *w ) hb_log("declpcm: hb_audio_resample_update() failed"); return NULL; } - out = hb_audio_resample(pv->resample, (void*)pv->data, pv->nsamples); + out = hb_audio_resample(pv->resample, &pv->data, pv->nsamples); if (out != NULL) { |