diff options
author | Rodeo <[email protected]> | 2012-11-21 18:53:23 +0000 |
---|---|---|
committer | Rodeo <[email protected]> | 2012-11-21 18:53:23 +0000 |
commit | 5ab9b16a3f9635778f1ea07129560adb1be28cc5 (patch) | |
tree | 929fe40720d3076d82820b178ae32dd9ab9bf037 /libhb/deca52.c | |
parent | 282ddc84776683667e417a62186be57b97be3eab (diff) |
hb_audio_remap: protect against invalid channel layouts.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5074 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r-- | libhb/deca52.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c index ba7c38485..32da29ce1 100644 --- a/libhb/deca52.c +++ b/libhb/deca52.c @@ -380,7 +380,9 @@ static hb_buffer_t* Decode(hb_work_object_t *w) { pv->channel_layout = new_layout; pv->nchannels = av_get_channel_layout_nb_channels(new_layout); - hb_audio_remap_set_channel_layout(pv->remap, pv->channel_layout); + hb_audio_remap_set_channel_layout(pv->remap, + pv->channel_layout, + pv->nchannels); hb_audio_resample_set_channel_layout(pv->resample, pv->channel_layout, pv->nchannels); |