changeset 7752:e3fb2606d5b5 libavcodec

skip converter exponent strategy for all channels at once
author jbr
date Sun, 31 Aug 2008 02:38:38 +0000
parents 816293be2e54
children 5e65094bbc23
files eac3dec.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/eac3dec.c	Sun Aug 31 02:37:04 2008 +0000
+++ b/eac3dec.c	Sun Aug 31 02:38:38 2008 +0000
@@ -415,9 +415,7 @@
     /* 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 */