Commit 6789cb80 authored by jbr's avatar jbr

fix decoding of DolbyNet AC3

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10493 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7542b4f6
...@@ -947,8 +947,8 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) ...@@ -947,8 +947,8 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk)
/* bit allocation information */ /* bit allocation information */
if (get_bits1(gb)) { if (get_bits1(gb)) {
ctx->bit_alloc_params.sdecay = ff_sdecaytab[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.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.sgain = ff_sgaintab[get_bits(gb, 2)];
ctx->bit_alloc_params.dbknee = ff_dbkneetab[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)]; ctx->bit_alloc_params.floor = ff_floortab[get_bits(gb, 3)];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment