diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-06 17:06:34 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-09-06 17:30:25 +0300 |
commit | 92aa3e7fb21a4b0764ac8a0348a5bf84badee216 (patch) | |
tree | b3c5248c1bcaf4b10cbd8bdbacf896478fb0dab3 /libavcodec/aacenc.c | |
parent | 34e85cb340675ac9b67b72a34cc785bbc8863660 (diff) |
aacenc: copy PRNG from the decoder
Needed for the following PNS commits.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r-- | libavcodec/aacenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 9cce1a2ff0..2b2d039f6e 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -861,6 +861,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) ff_aac_coder_init_mips(s); s->lambda = avctx->global_quality > 0 ? avctx->global_quality : 120; + s->random_state = 0x1f2e3d4c; ff_aac_tableinit(); |