[FFmpeg-cvslog] r10493 - trunk/libavcodec/ac3dec.c
jbr
subversion
Sat Sep 15 02:00:57 CEST 2007
Author: jbr
Date: Sat Sep 15 02:00:57 2007
New Revision: 10493
Log:
fix decoding of DolbyNet AC3
Modified:
trunk/libavcodec/ac3dec.c
Modified: trunk/libavcodec/ac3dec.c
==============================================================================
--- trunk/libavcodec/ac3dec.c (original)
+++ trunk/libavcodec/ac3dec.c Sat Sep 15 02:00:57 2007
@@ -947,8 +947,8 @@ static int ac3_parse_audio_block(AC3Deco
/* 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)];
More information about the ffmpeg-cvslog
mailing list