diff options
author | Rodeo <[email protected]> | 2012-10-20 23:29:33 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-10-20 23:29:33 +0000 |
commit | 305fc5798105e9a16f83868116d0a38a2919a638 (patch) | |
tree | 607b57a009cfa57fb6191fec6655df42167675a1 /libhb/encvorbis.c | |
parent | 4916c07f34cf97a79ca76f8163a9e7e258491bce (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/encvorbis.c')
-rw-r--r-- | libhb/encvorbis.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/libhb/encvorbis.c b/libhb/encvorbis.c index 4bd36b43a..d02297195 100644 --- a/libhb/encvorbis.c +++ b/libhb/encvorbis.c @@ -43,7 +43,7 @@ struct hb_work_private_s int64_t prev_blocksize; int out_discrete_channels; - int *remap_table; + int remap_table[8]; }; int encvorbisInit(hb_work_object_t *w, hb_job_t *job) @@ -129,14 +129,9 @@ int encvorbisInit(hb_work_object_t *w, hb_job_t *job) // channel remapping uint64_t layout = hb_ff_mixdown_xlat(audio->config.out.mixdown, NULL); - pv->remap_table = hb_audio_remap_build_table(layout, &hb_vorbis_chan_map, - audio->config.in.channel_map); - if (pv->remap_table == NULL) - { - hb_error("encvorbisInit: hb_audio_remap_build_table() failed"); - *job->die = 1; - return -1; - } + hb_audio_remap_build_table(&hb_vorbis_chan_map, + audio->config.in.channel_map, layout, + pv->remap_table); return 0; } @@ -160,7 +155,6 @@ void encvorbisClose(hb_work_object_t * w) hb_list_empty(&pv->list); } - free(pv->remap_table); free(pv->buf); free(pv); w->private_data = NULL; |