Commit 6d57da9a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'c9ed48e8'

* commit 'c9ed48e8':
  dca: Read params->pancABIT0[param_index] only if part0 is set
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 1eb28479 c9ed48e8
......@@ -514,8 +514,8 @@ int ff_dca_xll_decode_audio(DCAContext *s, AVFrame *frame)
}
for (i = 0; i < chset->channels; i++) {
int param_index = params->seg_type ? 0 : i;
int bits = params->pancABIT0[param_index];
int part0 = params->nSamplPart0[param_index];
int bits = part0 ? params->pancABIT0[param_index] : 0;
int *sample_buf = s->xll_sample_buf +
(in_channel + i) * s->xll_smpl_in_seg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment