# HG changeset patch # User jbr # Date 1189814457 0 # Node ID b031d95d8faeedbe24924819cbd6b00fdbf28225 # Parent 71dc0d839b28f8ae8aa640669246236ef31c63d4 fix decoding of DolbyNet AC3 diff -r 71dc0d839b28 -r b031d95d8fae ac3dec.c --- a/ac3dec.c Fri Sep 14 06:01:29 2007 +0000 +++ b/ac3dec.c Sat Sep 15 00:00:57 2007 +0000 @@ -947,8 +947,8 @@ /* bit allocation information */ if (get_bits1(gb)) { - ctx->bit_alloc_params.sdecay = ff_sdecaytab[get_bits(gb, 2)]; - ctx->bit_alloc_params.fdecay = ff_fdecaytab[get_bits(gb, 2)]; + ctx->bit_alloc_params.sdecay = ff_sdecaytab[get_bits(gb, 2)] >> ctx->bit_alloc_params.halfratecod; + ctx->bit_alloc_params.fdecay = ff_fdecaytab[get_bits(gb, 2)] >> ctx->bit_alloc_params.halfratecod; ctx->bit_alloc_params.sgain = ff_sgaintab[get_bits(gb, 2)]; ctx->bit_alloc_params.dbknee = ff_dbkneetab[get_bits(gb, 2)]; ctx->bit_alloc_params.floor = ff_floortab[get_bits(gb, 3)];