[FFmpeg-cvslog] r14815 - in trunk: libavcodec/ac3dec.c libavcodec/ac3dec.h libavutil/Makefile
Alex Beregszaszi
alex
Sun Aug 17 19:44:50 CEST 2008
On Sun, 2008-08-17 at 19:41 +0200, jbr wrote:
> Author: jbr
> Date: Sun Aug 17 19:41:48 2008
> New Revision: 14815
>
> Log:
> use LFG instead of Mersenne Twister for AC-3 PRNG
>
> Modified:
> trunk/libavcodec/ac3dec.c
> trunk/libavcodec/ac3dec.h
> trunk/libavutil/Makefile
>
> Modified: trunk/libavcodec/ac3dec.c
> ==============================================================================
> --- trunk/libavcodec/ac3dec.c (original)
> +++ trunk/libavcodec/ac3dec.c Sun Aug 17 19:41:48 2008
> @@ -33,7 +33,6 @@
> #include <string.h>
>
> #include "libavutil/crc.h"
> -#include "libavutil/random.h"
> #include "avcodec.h"
> #include "ac3_parser.h"
> #include "bitstream.h"
> @@ -198,7 +197,7 @@ static av_cold int ac3_decode_init(AVCod
> ff_mdct_init(&s->imdct_512, 9, 1);
> ff_kbd_window_init(s->window, 5.0, 256);
> dsputil_init(&s->dsp, avctx);
> - av_init_random(0, &s->dith_state);
> + av_lfg_init(&s->dith_state, 0);
Wouldn't it make sense having the same order of parameters here? (I mean
in the av_init_random and av_lfg_init functions).
--
Alex
More information about the ffmpeg-cvslog
mailing list