diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-12-14 18:53:09 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-12-14 18:53:09 +0000 |
commit | ade31b9424f6bb8f70f277b1acb4575d312ed955 (patch) | |
tree | dfbf76b662cccb5001b39c0c2e27379852e11cdb /libavcodec/aacenc_utils.h | |
parent | 932cbc846f5574ed6b775a0fd586e70b5c8f84a2 (diff) |
aacenc: switch to using the RNG from libavutil
PSNR doesn't change as expected. The AAC spec doesn't really say
anything about how exactly to generate noise.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacenc_utils.h')
-rw-r--r-- | libavcodec/aacenc_utils.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/aacenc_utils.h b/libavcodec/aacenc_utils.h index 5b308f2efe..736e4a06da 100644 --- a/libavcodec/aacenc_utils.h +++ b/libavcodec/aacenc_utils.h @@ -183,16 +183,6 @@ static av_always_inline float bval2bmax(float b) } /* - * linear congruential pseudorandom number generator, copied from the decoder - */ -static inline int lcg_random(unsigned previous_val) -{ - union { unsigned u; int s; } v = { previous_val * 1664525u + 1013904223 }; - return v.s; -} - - -/* * Compute a nextband map to be used with SF delta constraint utilities. * The nextband array should contain 128 elements, and positions that don't * map to valid, nonzero bands of the form w*16+g (with w being the initial |