[FFmpeg-devel] [PATCH] avcodec/dnxhdenc: Fix alignment of edge_buf*

Michael Niedermayer michael at niedermayer.cc
Tue Nov 1 03:31:10 EET 2016


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavcodec/dnxhdenc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/dnxhdenc.h b/libavcodec/dnxhdenc.h
index 91ef6d0..eb9da12 100644
--- a/libavcodec/dnxhdenc.h
+++ b/libavcodec/dnxhdenc.h
@@ -71,8 +71,8 @@ typedef struct DNXHDEncContext {
     int intra_quant_bias;
 
     DECLARE_ALIGNED(16, int16_t, blocks)[8][64];
-    uint8_t edge_buf_y[256];
-    uint8_t edge_buf_uv[2][128];
+    DECLARE_ALIGNED(16, uint8_t, edge_buf_y)[256];
+    DECLARE_ALIGNED(16, uint8_t, edge_buf_uv)[2][128];
 
     int      (*qmatrix_c)     [64];
     int      (*qmatrix_l)     [64];
-- 
2.10.1



More information about the ffmpeg-devel mailing list