diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2007-09-15 00:00:57 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2007-09-15 00:00:57 +0000 |
commit | 396a6ee50e5b7ce94ca958592d03ce6c04bf9d5a (patch) | |
tree | 2f97dff0e4f53fb18e4dc68de4c6005c5588742d | |
parent | 1a3a0a79b6f77043737926e457c8360dead032a7 (diff) | |
download | ffmpeg-396a6ee50e5b7ce94ca958592d03ce6c04bf9d5a.tar.gz |
fix decoding of DolbyNet AC3
Originally committed as revision 10493 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ac3dec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index 46a7602ec7..7ceda65ae4 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -947,8 +947,8 @@ static int ac3_parse_audio_block(AC3DecodeContext *ctx, int blk) /* 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)]; |