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.c | |
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.c')
-rw-r--r-- | libavcodec/aacenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 3406f43e2e..ec09063e84 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -904,7 +904,6 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) s->channels = avctx->channels; s->chan_map = aac_chan_configs[s->channels-1]; - s->random_state = 0x1f2e3d4c; s->lambda = avctx->global_quality > 0 ? avctx->global_quality : 120; avctx->extradata_size = 5; avctx->frame_size = 1024; @@ -997,6 +996,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) goto fail; s->psypp = ff_psy_preprocess_init(avctx); ff_lpc_init(&s->lpc, 2*avctx->frame_size, TNS_MAX_ORDER, FF_LPC_TYPE_LEVINSON); + av_lfg_init(&s->lfg, 0x72adca55); if (HAVE_MIPSDSP) ff_aac_coder_init_mips(s); |