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.h | |
parent | 932cbc846f5574ed6b775a0fd586e70b5c8f84a2 (diff) | |
download | ffmpeg-ade31b9424f6bb8f70f277b1acb4575d312ed955.tar.gz |
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.h')
-rw-r--r-- | libavcodec/aacenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacenc.h b/libavcodec/aacenc.h index d8bed82abe..2b721d374f 100644 --- a/libavcodec/aacenc.h +++ b/libavcodec/aacenc.h @@ -23,6 +23,7 @@ #define AVCODEC_AACENC_H #include "libavutil/float_dsp.h" +#include "libavutil/lfg.h" #include "avcodec.h" #include "put_bits.h" @@ -100,6 +101,7 @@ typedef struct AACEncContext { FFTContext mdct1024; ///< long (1024 samples) frame transform context FFTContext mdct128; ///< short (128 samples) frame transform context AVFloatDSPContext *fdsp; + AVLFG lfg; ///< PRNG needed for PNS float *planar_samples[8]; ///< saved preprocessed input int profile; ///< copied from avctx |