[FFmpeg-soc] [soc]: r1220 - eac3/eac3dec.c

Luca Barbato lu_zero at gentoo.org
Wed Aug 29 10:12:26 CEST 2007


bwolowiec wrote:
> Modified: eac3/eac3dec.c
> ==============================================================================
> --- eac3/eac3dec.c	(original)
> +++ eac3/eac3dec.c	Tue Aug 28 18:52:59 2007
> @@ -1144,22 +1144,34 @@ static void get_transform_coeffs_aht_ch(
>                  if(bg && pre_chmant == -(1<<(bits-bg-1))){
>                      // large mantissa
>                      GET_SBITS(pre_chmant, gbc, bits - ((bg==1)?1:0));
> -                    mant = (float) pre_chmant / (1<<(bits - ((bg==1)?2:1)));
> +                    if(bg==1)
> +                        //Gk = 2
> +                        mant = pre_chmant/((1<<bits-1)-1);
> +                    else
> +                        //Gk = 4
> +                        mant = pre_chamnt*3.0f/((1<<bits+1)-2);
                                        ^^^

Typo.


-- 

Luca Barbato

Gentoo/linux Gentoo/PPC
http://dev.gentoo.org/~lu_zero



More information about the FFmpeg-soc mailing list