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

Michael Niedermayer michaelni at gmx.at
Tue Aug 5 14:23:47 CEST 2008


On Tue, Aug 05, 2008 at 05:30:16AM +0200, jbr wrote:
> Author: jbr
> Date: Tue Aug  5 05:30:16 2008
> New Revision: 3034
> 
> Log:
> use hex value instead of decimal to show relationship to 0x7FFFFF
> 
> Modified:
>    eac3/eac3dec.c
> 
> Modified: eac3/eac3dec.c
> ==============================================================================
> --- eac3/eac3dec.c	(original)
> +++ eac3/eac3dec.c	Tue Aug  5 05:30:16 2008
> @@ -79,7 +79,7 @@ void ff_eac3_get_transform_coeffs_aht_ch
>          if (!hebap) {
>              /* zero-mantissa dithering */
>              for (blk = 0; blk < 6; blk++) {
> -                s->pre_mantissa[blk][ch][bin] = (av_random(&s->dith_state) & 0x7FFFFF) - 4194304;
> +                s->pre_mantissa[blk][ch][bin] = (av_random(&s->dith_state) & 0x7FFFFF) - 0x400000;

There are faster random number generators, please see lfg.c/h
(and yes iam of course interrested if you can hear any difference between
lfg, lcg and mt) (with the volume turned up and only some noise generated
from above)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- 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/20080805/c7a16eb2/attachment.pgp>


More information about the FFmpeg-soc mailing list