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

Michael Niedermayer michaelni at gmx.at
Sun Aug 24 13:45:19 CEST 2008


On Sun, Aug 24, 2008 at 06:48:40AM +0200, jbr wrote:
> Author: jbr
> Date: Sun Aug 24 06:48:40 2008
> New Revision: 3571
> 
> Log:
> avoid 64-bit multiplies in GAQ mantissa decoding
> 
[...]
>                      if (mant >= 0)
>                          b = 32768 >> log_gain;
>                      else
>                          b = ff_eac3_gaq_remap_2_4_b[hebap-8][log_gain-1];
> +                    mant += (ff_eac3_gaq_remap_2_4_a[hebap-8][log_gain-1] * (mant>>8) + (b>>8)) >> 7;

the values in ff_eac3_gaq_remap_2_4_b can be >>8 which i think should simplify
this

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20080824/f1e1ba95/attachment.pgp>


More information about the FFmpeg-soc mailing list