diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-11-27 14:52:35 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-11-27 14:52:35 +0000 |
commit | 3d62e7a30fa552be52d12b31e3e0f79153aff891 (patch) | |
tree | 0aca26f2b4029afb989bee72c27c10f14a3c9405 /libavcodec/aactab.h | |
parent | 8000d484b83aafa752d84fbdbfb352ffe0dc64f8 (diff) | |
download | ffmpeg-3d62e7a30fa552be52d12b31e3e0f79153aff891.tar.gz |
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>
Diffstat (limited to 'libavcodec/aactab.h')
-rw-r--r-- | libavcodec/aactab.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aactab.h b/libavcodec/aactab.h index eb915166a2..05bbd5fab3 100644 --- a/libavcodec/aactab.h +++ b/libavcodec/aactab.h @@ -30,12 +30,15 @@ #ifndef AVCODEC_AACTAB_H #define AVCODEC_AACTAB_H +#include "libavutil/thread.h" #include "libavutil/mem.h" #include "aac.h" #include "aac_tablegen_decl.h" #include <stdint.h> +extern AVOnce aac_table_init; /* Protects ff_aac_tableinit() */ + /* NOTE: * Tables in this file are used by the AAC decoder and will be used by the AAC * encoder. |