Mercurial > libavcodec.hg
changeset 6871:dc6c9f74f2c1 libavcodec
10l: fix error in commit r13382
author | jbr |
---|---|
date | Sun, 25 May 2008 16:19:44 +0000 |
parents | 62ce6173d0ea |
children | 60236c4f0b76 |
files | ac3dec.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ac3dec.c Sun May 25 16:10:08 2008 +0000 +++ b/ac3dec.c Sun May 25 16:19:44 2008 +0000 @@ -988,7 +988,8 @@ } /* coupling leak information */ - if (s->cpl_in_use && get_bits1(gbc)) { + if (s->cpl_in_use) { + if (get_bits1(gbc)) { s->bit_alloc_params.cpl_fast_leak = get_bits(gbc, 3); s->bit_alloc_params.cpl_slow_leak = get_bits(gbc, 3); bit_alloc_stages[CPL_CH] = FFMAX(bit_alloc_stages[CPL_CH], 2); @@ -996,6 +997,7 @@ av_log(s->avctx, AV_LOG_ERROR, "new coupling leak info must be present in block 0\n"); return -1; } + } /* delta bit allocation information */ if (get_bits1(gbc)) {