[FFmpeg-cvslog] avcodec/opus: make redundancy_buf 32 byte aligned

James Almer git at videolan.org
Tue Apr 2 17:37:49 EEST 2019


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue Apr  2 11:36:56 2019 -0300| [b74e13711ff6998619371a3e0ac14408d9c7acba] | committer: James Almer

avcodec/opus: make redundancy_buf 32 byte aligned

Fixes ff_opus_deemphasis_fma3 segmentation fault crashes on x86_32.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b74e13711ff6998619371a3e0ac14408d9c7acba
---

 libavcodec/opus.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/opus.h b/libavcodec/opus.h
index edbaab5ce7..63ecd0aff7 100644
--- a/libavcodec/opus.h
+++ b/libavcodec/opus.h
@@ -112,7 +112,7 @@ typedef struct OpusStreamContext {
     DECLARE_ALIGNED(32, float, celt_buf)[2][960];
     float *celt_output[2];
 
-    float redundancy_buf[2][960];
+    DECLARE_ALIGNED(32, float, redundancy_buf)[2][960];
     float *redundancy_output[2];
 
     /* data buffers for the final output data */



More information about the ffmpeg-cvslog mailing list