summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-08-27 21:17:59 +0000
committerRodeo <[email protected]>2012-08-27 21:17:59 +0000
commitd5cd2171f6bd69ec44d4568926728b890f7d1f97 (patch)
tree025fb0ecb885310f114eeed654ff165d539d3c17 /libhb/decavcodec.c
parent09a30794cb6388909e273f0801ede2e6001bf955 (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/decavcodec.c')
-rw-r--r--libhb/decavcodec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index d0a64a2b0..4dc1e7388 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1452,12 +1452,12 @@ static void decodeAudio(hb_audio_t *audio, hb_work_private_t *pv, uint8_t *data,
}
else
{
- if (hb_audio_resample_update(pv->resample,
- pv->context->sample_fmt,
- pv->context->channel_layout,
- HB_MIXLEV_DEFAULT,
- HB_MIXLEV_DEFAULT,
- pv->context->channels))
+ hb_audio_resample_set_channel_layout(pv->resample,
+ context->channel_layout,
+ context->channels);
+ hb_audio_resample_set_sample_fmt(pv->resample,
+ context->sample_fmt);
+ if (hb_audio_resample_update(pv->resample))
{
hb_log("decavcodec: hb_audio_resample_update() failed");
return;