From patchwork Sun Oct 2 15:58:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adriano Pallavicino X-Patchwork-Id: 829 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp1193566vsd; Sun, 2 Oct 2016 08:58:40 -0700 (PDT) X-Received: by 10.28.140.213 with SMTP id o204mr5679168wmd.111.1475423920208; Sun, 02 Oct 2016 08:58:40 -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 u187si1118614wmg.138.2016.10.02.08.58.39; Sun, 02 Oct 2016 08:58:40 -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; dkim=neutral (body hash did not verify) header.i=@gmail.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; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B3D8B689BE4; Sun, 2 Oct 2016 18:58:23 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A1DF2689795 for ; Sun, 2 Oct 2016 18:58:17 +0300 (EEST) Received: by mail-wm0-f51.google.com with SMTP id b201so37807968wmb.0 for ; Sun, 02 Oct 2016 08:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to; bh=nuUIydGzUDgoVovVU8OFZbb9pTOLizwOypVwY84GGvo=; b=JstDSHDBUmqwXfJy3vjobjv3sW7nwiIlyFzfsUZIYyjzEVkSFFug0gQoNxqwCEipzw duoBEn9ihDpUGr0IEP+iVZI8ejb6W+uCgiNcRyz/qkpvRKUu78PHtf4Yyv8TsqBwFYjh 6xE/32tkUg59n+ZPLzSwnYosscqn88hPHmOPhb7kSbdVoRSj2rnoGZ6YJzcewgfjkeBq Jcx2mY5lXlDx717xU0cYU6d/QXX688bRCD/mQSFuPA7f3c11ncUZFad9hJSr8CNoE5CV XVs4WK7rhARvapV7JrlFM3u3cDlDHUwH/pwIq+5z358rTf4R9zm5ebDlskV0OFVi9S2Z QE+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=nuUIydGzUDgoVovVU8OFZbb9pTOLizwOypVwY84GGvo=; b=FaHn4NHkDPgMrotkzKDquAI8vG+1HN/z1KZ5APViVhHYrCgRVzlssfi1GWzvXxv8p0 rwBx18gqmxJuaGETsxgtQ5bhmGvpRm5B5uv9OiTKzIYIaXL2nu+Ol7LVJJjkiDMPOaln rHHIVWMo47rVgiIpkPh5Poj/1OI0iRNqz4mkMpysFhOpLA+YHost6lTleonW9ixwswno JBanJuwX8t0tQFC+sZA5GyHQrkrgEHSciO3ckn+cBcL8XnXbXtmCvr5gl3A53taD7cU3 1hsVecJpVNvTT0Q/M96Tya5gmrUDjsSUAG/LZ3fGKRdKw7qE4waGBv1lJSH+S855T5ck iTHw== X-Gm-Message-State: AA6/9Rm8vVOoA5M4rssz9wKQPXTwqrMcUpDt5NdDXT4Lnjd4t49XkCZQ8JarrjalzGYXSgKIjSOaOo0Bl7wGAA== X-Received: by 10.28.10.138 with SMTP id 132mr6708932wmk.1.1475423910873; Sun, 02 Oct 2016 08:58:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.69.84 with HTTP; Sun, 2 Oct 2016 08:58:30 -0700 (PDT) From: Adriano Pallavicino Date: Sun, 2 Oct 2016 17:58:30 +0200 X-Google-Sender-Auth: DIorY1IFQ2FDl5mz20sIWj3XUfU Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH] libavfilter/vf_paletteuse.c: fix warning due to misleading indentation 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" From 93fe2a96d71ac219915ade0a9247e1ae4b931a27 Mon Sep 17 00:00:00 2001 From: Adriano Pallavicino Date: Sun, 2 Oct 2016 17:52:12 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20warning:=20this=20=E2=80=98if=E2=80=99=20?= =?UTF-8?q?clause=20does=20not=20guard...=20[-Wmisleading-indentation]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. On branch fix_if_clause Changes to be committed: modified: libavfilter/vf_paletteuse.c --- libavfilter/vf_paletteuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_paletteuse.c b/libavfilter/vf_paletteuse.c index e063ff7..75d80d6 100644 --- a/libavfilter/vf_paletteuse.c +++ b/libavfilter/vf_paletteuse.c @@ -444,7 +444,7 @@ static av_always_inline int set_frame(PaletteUseContext *s, AVFrame *out, AVFram if (down) { if (left2) src[ src_linesize + x - 2] = dither_color(src[ src_linesize + x - 2], er, eg, eb, 1, 4); if (left) src[ src_linesize + x - 1] = dither_color(src[ src_linesize + x - 1], er, eg, eb, 2, 4); - src[ src_linesize + x ] = dither_color(src[ src_linesize + x ], er, eg, eb, 3, 4); + src[ src_linesize + x ] = dither_color(src[ src_linesize + x ], er, eg, eb, 3, 4); if (right) src[ src_linesize + x + 1] = dither_color(src[ src_linesize + x + 1], er, eg, eb, 2, 4); if (right2) src[ src_linesize + x + 2] = dither_color(src[ src_linesize + x + 2], er, eg, eb, 1, 4); } -- 2.7.4