diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-11-27 20:51:42 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-11-27 20:51:42 +0300 |
commit | ec0719264cb9a9d5cbaf225da48929aea24997a3 (patch) | |
tree | 15735cb77c99acf4aa64f2fd6b990549382f019a /libavcodec/aacdec_template.c | |
parent | 591fbd629ef5fcff874a5cca8a9edd094f0c9ea4 (diff) |
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/aacdec_template.c')
-rw-r--r-- | libavcodec/aacdec_template.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c index 82f4fb44ac..620600c05a 100644 --- a/libavcodec/aacdec_template.c +++ b/libavcodec/aacdec_template.c @@ -1103,6 +1103,8 @@ static av_cold void aac_static_table_init(void) AAC_RENAME(cbrt_tableinit)(); } +static AVOnce aac_table_init = AV_ONCE_INIT; + static av_cold int aac_decode_init(AVCodecContext *avctx) { AACContext *ac = avctx->priv_data; |