summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-05-25 16:19:44 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-05-25 16:19:44 +0000
commit43ad93a4f1289da5465f8f07bd46739ed4abbd22 (patch)
treec95720e4bb407daf8d4fc50f722d557d89948fae /libavcodec
parent8916d922fc50a736c8e14aba8d417b7ed07e1651 (diff)
10l: fix error in commit r13382
Originally committed as revision 13384 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3dec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 8abbab984a..3a31ed8d47 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -988,7 +988,8 @@ static int ac3_parse_audio_block(AC3DecodeContext *s, int blk)
}
/* 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 @@ static int ac3_parse_audio_block(AC3DecodeContext *s, int blk)
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)) {