aacenc: make threadsafe
authorRostislav Pehlivanov <atomnuker@gmail.com>
Fri, 27 Nov 2015 14:52:35 +0000 (14:52 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Fri, 27 Nov 2015 14:52:35 +0000 (14:52 +0000)
commit3d62e7a30fa552be52d12b31e3e0f79153aff891
tree0aca26f2b4029afb989bee72c27c10f14a3c9405
parent8000d484b83aafa752d84fbdbfb352ffe0dc64f8
aacenc: make threadsafe

Since the ff_aac_tableinit() can be called by both the encoder and
the decoder (in case of transcoding) this commit shares the AVOnce
variable to prevent this.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavcodec/aacdec_template.c
libavcodec/aacenc.c
libavcodec/aactab.c
libavcodec/aactab.h