summaryrefslogtreecommitdiffstats
path: root/libhb/declpcm.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/declpcm.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/declpcm.c')
-rw-r--r--libhb/declpcm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libhb/declpcm.c b/libhb/declpcm.c
index 8cc5c61b3..85a47c313 100644
--- a/libhb/declpcm.c
+++ b/libhb/declpcm.c
@@ -330,10 +330,10 @@ static hb_buffer_t *Decode( hb_work_object_t *w )
} break;
}
- if (hb_audio_resample_update(pv->resample, AV_SAMPLE_FMT_FLT,
- hdr2layout[pv->nchannels - 1],
- HB_MIXLEV_DEFAULT, HB_MIXLEV_DEFAULT,
- pv->nchannels))
+ hb_audio_resample_set_channel_layout(pv->resample,
+ hdr2layout[pv->nchannels - 1],
+ pv->nchannels);
+ if (hb_audio_resample_update(pv->resample))
{
hb_log("declpcm: hb_audio_resample_update() failed");
return NULL;