aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2008-05-31 19:56:54 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2008-05-31 19:56:54 +0000
commite25973a1fdfef1a96257e18fdecd70e5befe3824 (patch)
tree53df4f5ace2780a515b4ec1efa705c9ac8d2b403 /libavcodec
parente992fba4ba44436046149b9025bced58b8cc9337 (diff)
downloadffmpeg-e25973a1fdfef1a96257e18fdecd70e5befe3824.tar.gz
new dba values requires running last 2 bit allocation stages
Originally committed as revision 13584 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 93d1d189f0..ada77d8e52 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1005,6 +1005,9 @@ static int ac3_parse_audio_block(AC3DecodeContext *s, int blk)
s->dba_lengths[ch][seg] = get_bits(gbc, 4);
s->dba_values[ch][seg] = get_bits(gbc, 3);
}
+ /* run last 2 bit allocation stages if new dba values */
+ bit_alloc_stages[ch] = FFMAX(bit_alloc_stages[ch], 2);
+
}
}
} else if(blk == 0) {