aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJustin Ruggles2008-08-31 02:38:38 +0000
committerJustin Ruggles2008-08-31 02:38:38 +0000
commit1ffbafa02b3cbc00e24a92cba8cd3a66ba02ec50 (patch)
treebbb77f610575112ba4a87e9be0bfbe9c114e48e2 /libavcodec
parentfc324cd523a01c8715a2a99e299a423c1aca40b7 (diff)
skip converter exponent strategy for all channels at once
Originally committed as revision 15092 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/eac3dec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/eac3dec.c b/libavcodec/eac3dec.c
index 5d75f8a7ac..836cb8ef05 100644
--- a/libavcodec/eac3dec.c
+++ b/libavcodec/eac3dec.c
@@ -415,9 +415,7 @@ int ff_eac3_parse_header(AC3DecodeContext *s)
/* original exponent strategies if this stream was converted from AC-3 */
if (s->frame_type == EAC3_FRAME_TYPE_INDEPENDENT &&
(s->num_blocks == 6 || get_bits1(gbc))) {
- for (ch = 1; ch <= s->fbw_channels; ch++) {
- skip_bits(gbc, 5); // skip converter channel exponent strategy
- }
+ skip_bits(gbc, 5 * s->fbw_channels); // skip converter channel exponent strategy
}
/* determine which channels use AHT */