From patchwork Wed Jun 28 13:21:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= X-Patchwork-Id: 4146 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.1.76 with SMTP id 73csp3293235vsb; Wed, 28 Jun 2017 06:21:33 -0700 (PDT) X-Received: by 10.28.129.149 with SMTP id c143mr7150868wmd.47.1498656093269; Wed, 28 Jun 2017 06:21:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498656093; cv=none; d=google.com; s=arc-20160816; b=UQC8KCdESjTB9/i5I9+A/OQ3IpqP1ZbgjXn6LTZ5e9kNWTclRQclMkLTYJuHzVvluL 1+LMoAT0z09OpK7zrxFx17AaK5w1O6xoAIM79rw7bZ1ffV8VrCbIsWD8Uq98DrngPoZv 0OUDgpToUErSRkEPtIeY7HAE87nv8UUASHPxnzc5asU8WhOgPs5OW18P8fy8NB1K6rJG Q6B97Nn+D7m/efm8vz5E0sz8jQjHHr5Xeq+b+95ZzaT/fn9t2h+F8/sg4eZnCX+57HGw VYGps+VE7LXRZG72J39cYFM+Cvtr2Q+B2RY1q1TabOo/rNRXRJYffj68Ua5mERYSwPI+ RFVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=gjgwPJXY9UxF8Gc0cC/z2l4HLop0KTZwkiUj1q/hpqg=; b=oZl+kDPSZwhDz2ezk0Mz5TEuUqTOrNSklFm83w4gwFnB+ii1Bf8pQiKPVMyvwbnfsn MCqwlm7twvNVkbstZz1VicgRaspYL/BoAizVvi3c3dxVESR/W6flvePH7pLJ6Zpg6myw dTQK0qNaM1a5Dz6D+tj5MrFbQWUOn4iAVk6BtbKAGY840EEQcydclRcfKgoCyjHfv/9n dcFwjKWcMTsgTHeuFxYowL869cs4l1irLffN4+KoKlYzdxo7dS42yKa0K0RcYunUM9OW TqmamVahLAYQKQsLBlXNVjkwhWmn526qA6865KApZjixdemWgLkgyQxxfN49cq7F/8bC H/yA== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id h193si5972753wma.181.2017.06.28.06.21.32; Wed, 28 Jun 2017 06:21:33 -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 85C1368A509; Wed, 28 Jun 2017 16:21:27 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from golem.pkh.me (LStLambert-657-1-117-164.w92-154.abo.wanadoo.fr [92.154.28.164]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4D57968A17C for ; Wed, 28 Jun 2017 16:21:21 +0300 (EEST) Received: from localhost (golem.pkh.me [local]) by golem.pkh.me (OpenSMTPD) with ESMTPA id 0e85800a; Wed, 28 Jun 2017 13:21:22 +0000 (UTC) From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= To: ffmpeg-devel@ffmpeg.org Date: Wed, 28 Jun 2017 15:21:18 +0200 Message-Id: <20170628132118.1142-1-u@pkh.me> X-Mailer: git-send-email 2.13.2 Subject: [FFmpeg-devel] [PATCH] lavu/cpu: disable MMX warning on non x86 platforms 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 Cc: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" We have AV_CPU_FLAG_ARMV8 == AV_CPU_FLAG_SSE3 which causes a trigger of this MMX warning on AArch64. --- libavutil/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/cpu.c b/libavutil/cpu.c index 16e0c9278f..a22da0fa8c 100644 --- a/libavutil/cpu.c +++ b/libavutil/cpu.c @@ -61,7 +61,8 @@ static int get_cpu_flags(void) } void av_force_cpu_flags(int arg){ - if ( (arg & ( AV_CPU_FLAG_3DNOW | + if (ARCH_X86 && + (arg & ( AV_CPU_FLAG_3DNOW | AV_CPU_FLAG_3DNOWEXT | AV_CPU_FLAG_MMXEXT | AV_CPU_FLAG_SSE |