diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-10-14 23:48:23 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-10-19 20:30:48 +0200 |
commit | 10f468156c0109a06854b5d672c5209a88923ce9 (patch) | |
tree | 2cba12cbd22ba8d3303d677ace8182dd645c9e96 /libavcodec/sinewin_tablegen_template.c | |
parent | feb05ffa99fc3633e5dd97916ac67dc4e7c76ab2 (diff) | |
download | ffmpeg-10f468156c0109a06854b5d672c5209a88923ce9.tar.gz |
lavc/sinewin: Do not declare AAC 120/960 tables as const.
ff_sine_window_init() is writing to these tables causing
a crash if compiled with gcc 8 and lto.
Analyzed by Martin Liška in:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85132
Fixes ticket #7491.
Diffstat (limited to 'libavcodec/sinewin_tablegen_template.c')
-rw-r--r-- | libavcodec/sinewin_tablegen_template.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/sinewin_tablegen_template.c b/libavcodec/sinewin_tablegen_template.c index 43ce1ba82e..b8eb407bd8 100644 --- a/libavcodec/sinewin_tablegen_template.c +++ b/libavcodec/sinewin_tablegen_template.c @@ -33,6 +33,8 @@ #define SINETABLE_CONST #define SINETABLE(size) \ INTFLOAT AAC_RENAME(ff_sine_##size)[size] +#define SINETABLE120960(size) \ + INTFLOAT AAC_RENAME(ff_sine_##size)[size] #define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0])) #include "sinewin_tablegen.h" #include "tableprint.h" |