From patchwork Mon May 1 08:34:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 3531 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp1315638vsd; Mon, 1 May 2017 01:34:38 -0700 (PDT) X-Received: by 10.223.171.68 with SMTP id r4mr15467461wrc.67.1493627678277; Mon, 01 May 2017 01:34:38 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id w43si15964317wrb.207.2017.05.01.01.34.37; Mon, 01 May 2017 01:34:38 -0700 (PDT) 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 E3C906883BF; Mon, 1 May 2017 11:34:31 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe02-2.mx.upcmail.net (vie01a-dmta-pe02-2.mx.upcmail.net [62.179.121.158]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 646E768092E for ; Mon, 1 May 2017 11:34:25 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe02.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1d56mp-0003VJ-Re for ffmpeg-devel@ffmpeg.org; Mon, 01 May 2017 10:34:27 +0200 Received: from [192.168.1.3] ([80.110.80.139]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id EwaP1v00q30Lr9401waQBK; Mon, 01 May 2017 10:34:24 +0200 X-SourceIP: 80.110.80.139 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Mon, 1 May 2017 10:34:23 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201705011034.23564.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH]lavc/mips: Add missing const qualifiers 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Hi! Attached patch fixes many warnings when compiling for mips. Please comment, Carl Eugen From a7d2e32806adef148496454b23b5f8fe12cbf396 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Mon, 1 May 2017 10:31:35 +0200 Subject: [PATCH] lavc/mips/hevc_idct_msa: Add missing const qualifier. Fixes many warnings: initialization discards 'const' qualifier from pointer target type --- libavcodec/mips/hevc_idct_msa.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/mips/hevc_idct_msa.c b/libavcodec/mips/hevc_idct_msa.c index 975d91f..d483707 100644 --- a/libavcodec/mips/hevc_idct_msa.c +++ b/libavcodec/mips/hevc_idct_msa.c @@ -330,7 +330,7 @@ static void hevc_idct_4x4_msa(int16_t *coeffs) static void hevc_idct_8x8_msa(int16_t *coeffs) { - int16_t *filter = >8x8_cnst[0]; + const int16_t *filter = >8x8_cnst[0]; v8i16 in0, in1, in2, in3, in4, in5, in6, in7; LD_SH8(coeffs, 8, in0, in1, in2, in3, in4, in5, in6, in7); @@ -349,7 +349,7 @@ static void hevc_idct_16x16_msa(int16_t *coeffs) int16_t buf[256]; int16_t *buf_ptr = &buf[0]; int16_t *src = coeffs; - int16_t *filter = >16x16_cnst[0]; + const int16_t *filter = >16x16_cnst[0]; v8i16 in0, in1, in2, in3, in4, in5, in6, in7; v8i16 in8, in9, in10, in11, in12, in13, in14, in15; v8i16 vec0, vec1, vec2, vec3, vec4, vec5, vec6, vec7; @@ -429,10 +429,10 @@ static void hevc_idct_8x32_column_msa(int16_t *coeffs, uint8_t buf_pitch, uint8_t round) { uint8_t i; - int16_t *filter_ptr0 = >32x32_cnst0[0]; - int16_t *filter_ptr1 = >32x32_cnst1[0]; - int16_t *filter_ptr2 = >32x32_cnst2[0]; - int16_t *filter_ptr3 = >32x32_cnst3[0]; + const int16_t *filter_ptr0 = >32x32_cnst0[0]; + const int16_t *filter_ptr1 = >32x32_cnst1[0]; + const int16_t *filter_ptr2 = >32x32_cnst2[0]; + const int16_t *filter_ptr3 = >32x32_cnst3[0]; int16_t *src0 = (coeffs + buf_pitch); int16_t *src1 = (coeffs + 2 * buf_pitch); int16_t *src2 = (coeffs + 4 * buf_pitch);