Opened 4 years ago

Closed 4 years ago

#7491 closed defect (fixed)

aac crashes with gcc 8.2 lto

Reported by: Hello71 Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: aac crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

it doesn't work.

How to reproduce:

  1. build ffmpeg with gcc 8.2 + lto and hardcoded tables
  2. play aac file

expected results:

it works

actual results:

it crashes in ff_sine_window_init

additional information:

(this is not my report but seems to be the same bug)

Change History (3)

comment:1 by Carl Eugen Hoyos, 4 years ago

Priority: normalimportant
Version: unspecifiedgit-master

Does the following change fix the crash for you?

diff --git a/libavcodec/sinewin.h b/libavcodec/sinewin.h
index 6b97a71..a0802ac 100644
--- a/libavcodec/sinewin.h
+++ b/libavcodec/sinewin.h
@@ -26,7 +26,7 @@
 #include "libavcodec/aac_defines.h"

-#   define SINETABLE_CONST const

comment:2 by Hello71, 4 years ago

seems to work

comment:3 by Carl Eugen Hoyos, 4 years ago

Keywords: aac crash added
Resolution: fixed
Status: newclosed

Should be fixed in 10f468156c0109a06854b5d672c5209a88923ce9, thank you for the report!

Note: See TracTickets for help on using tickets.