summaryrefslogtreecommitdiffstats
path: root/libhb/encfaac.c
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-10-20 23:29:33 +0000
committerRodeo <[email protected]>2012-10-20 23:29:33 +0000
commit305fc5798105e9a16f83868116d0a38a2919a638 (patch)
tree607b57a009cfa57fb6191fec6655df42167675a1 /libhb/encfaac.c
parent4916c07f34cf97a79ca76f8163a9e7e258491bce (diff)
hb_audio_remap improvements:
- support for additional sample formats - support for variable channel layouts git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5023 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encfaac.c')
-rw-r--r--libhb/encfaac.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/libhb/encfaac.c b/libhb/encfaac.c
index c6a3f8a16..c8754f7d7 100644
--- a/libhb/encfaac.c
+++ b/libhb/encfaac.c
@@ -74,18 +74,10 @@ int encfaacInit( hb_work_object_t * w, hb_job_t * job )
cfg->allowMidside = 1;
/* channel configuration & remapping */
- uint64_t layout;
- int *remap_table;
- layout = hb_ff_mixdown_xlat(audio->config.out.mixdown, NULL);
- remap_table = hb_audio_remap_build_table(layout, &hb_aac_chan_map,
- audio->config.in.channel_map);
- if (remap_table != NULL)
- {
- // faac does its own remapping
- memcpy(cfg->channel_map, remap_table,
- pv->out_discrete_channels * sizeof(int));
- free(remap_table);
- }
+ uint64_t layout = hb_ff_mixdown_xlat(audio->config.out.mixdown, NULL);
+ hb_audio_remap_build_table(&hb_aac_chan_map, audio->config.in.channel_map,
+ layout, cfg->channel_map);
+
switch (audio->config.out.mixdown)
{
case HB_AMIXDOWN_7POINT1: