From patchwork Fri Jan 13 18:04:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Steinar H. Gunderson" X-Patchwork-Id: 2215 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.89.21 with SMTP id n21csp314207vsb; Fri, 13 Jan 2017 10:46:02 -0800 (PST) X-Received: by 10.28.210.139 with SMTP id j133mr3316289wmg.54.1484333162063; Fri, 13 Jan 2017 10:46:02 -0800 (PST) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 73si3029743wmn.146.2017.01.13.10.46.01; Fri, 13 Jan 2017 10:46:02 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 957D868A41E; Fri, 13 Jan 2017 20:45:50 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [193.35.52.29]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E393368A372 for ; Fri, 13 Jan 2017 20:45:44 +0200 (EET) Received: from pannekake.samfundet.no ([2001:67c:29f4::50] ident=unknown) by cassarossa.samfundet.no with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <7c092458a12aa47522fc7cc367f712cc3f52f798@pannekake.samfundet.no>) id 1cS6rH-0001QD-2V for ffmpeg-devel@ffmpeg.org; Fri, 13 Jan 2017 19:45:51 +0100 Received: from sesse by pannekake.samfundet.no with local (Exim 4.84_2) (envelope-from <7c092458a12aa47522fc7cc367f712cc3f52f798@pannekake.samfundet.no>) id 1cS6rG-0009eQ-Rm for ffmpeg-devel@ffmpeg.org; Fri, 13 Jan 2017 19:45:51 +0100 From: "Steinar H. Gunderson" Date: Fri, 13 Jan 2017 19:04:25 +0100 To: ffmpeg-devel@ffmpeg.org Message-Id: Subject: [FFmpeg-devel] [PATCH] speedhq: Align blocks variable properly. X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Seemingly ff_clear_block_sse assumed that the block array is aligned, so make sure it is. --- libavcodec/speedhq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/speedhq.c b/libavcodec/speedhq.c index 9c21c0b1be..30160dd3f2 100644 --- a/libavcodec/speedhq.c +++ b/libavcodec/speedhq.c @@ -224,7 +224,7 @@ static inline int decode_dct_block(const SHQContext *s, GetBitContext *gb, int l { const int *quant_matrix = s->quant_matrix; const uint8_t *scantable = s->intra_scantable.permutated; - int16_t block[64]; + DECLARE_ALIGNED(16, int16_t, block)[64]; int dc_offset; s->bdsp.clear_block(block);