diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-11-27 17:51:42 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-11-27 17:51:42 +0000 |
commit | ec0719264cb9a9d5cbaf225da48929aea24997a3 (patch) | |
tree | 15735cb77c99acf4aa64f2fd6b990549382f019a /libavcodec/aacenc.c | |
parent | 591fbd629ef5fcff874a5cca8a9edd094f0c9ea4 (diff) | |
download | ffmpeg-ec0719264cb9a9d5cbaf225da48929aea24997a3.tar.gz |
aac: temporarily un-share aac_table_init AVOnce variable
AAC-Fixed decoder segfaulted. This commit makes the aac encoder
and decoder init the table twice in case of transcoding again.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r-- | libavcodec/aacenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index d6cac47f62..e49cf4b2c6 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -29,6 +29,7 @@ * add sane pulse detection ***********************************/ +#include "libavutil/thread.h" #include "libavutil/float_dsp.h" #include "libavutil/opt.h" #include "avcodec.h" @@ -46,6 +47,8 @@ #include "psymodel.h" +static AVOnce aac_table_init = AV_ONCE_INIT; + /** * Make AAC audio config object. * @see 1.6.2.1 "Syntax - AudioSpecificConfig" |