]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mpc.h
Make Musepack decoders use LFG pseudorandom generator
[ffmpeg] / libavcodec / mpc.h
index df7915ee483588c3831cf11ea9b48aa3c4b8e81c..2720afefaf8d8e141b644f184a10c68c89e52580 100644 (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]);