Make Musepack decoders use LFG pseudorandom generator

Originally committed as revision 17880 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Kostya Shishkov
2009-03-08 16:37:57 +00:00
parent d2f532c8a0
commit 74e2a0784e
4 changed files with 8 additions and 9 deletions

View File

@@ -28,7 +28,7 @@
#ifndef AVCODEC_MPC_H
#define AVCODEC_MPC_H
#include "libavutil/random.h"
#include "libavutil/lfg.h"
#include "avcodec.h"
#include "bitstream.h"
#include "dsputil.h"
@@ -62,7 +62,7 @@ typedef struct {
int cur_frame, frames;
uint8_t *bits;
int buf_size;
AVRandomState rnd;
AVLFG rnd;
int frames_to_skip;
/* for synthesis */
DECLARE_ALIGNED_16(MPA_INT, synth_buf[MPA_MAX_CHANNELS][512*2]);