From patchwork Sun Oct 2 16:24:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Adriano Pallavicino X-Patchwork-Id: 830 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp1203065vsd; Sun, 2 Oct 2016 09:24:15 -0700 (PDT) X-Received: by 10.28.181.68 with SMTP id e65mr6367805wmf.132.1475425455093; Sun, 02 Oct 2016 09:24:15 -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 f5si14694486wmh.114.2016.10.02.09.24.14; Sun, 02 Oct 2016 09:24:15 -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 51923689C4B; Sun, 2 Oct 2016 19:23:59 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DD161689B56 for ; Sun, 2 Oct 2016 19:23:52 +0300 (EEST) Received: by mail-wm0-f47.google.com with SMTP id k125so108653443wma.1 for ; Sun, 02 Oct 2016 09:24:06 -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=xtAdKCfR/6M1PEgiC+ioSgh5wn0qNm3QclO0vb1mK4o=; b=y9/QB2CM1iqy8Pyd7Byiagf4cn+ZTgWz7MlXZ6uCqxNk8NTRqF3VV0zb3PlNWjbymI o6tHeUaf3gJVPMibIbFB7gF82A39U2HDIDGSAIxJbRmf7I/st+R3FABqbFJh5Gq8d8w4 3lZrceuljn05uJeLJuZBv7BAl3e89QiGdeIrQ81QuF0gTgoUza+4uXjVoJsLiTt4NWNJ WmxHNMMy+dowvqTqsQ/0PnjkNRtCrL06YD5HnvU03SuVllTdmY3BSqwYlqnqUpUwhfBG 03aaLtTGY58E1pJosWJmGASSeGnS33QoFx9vgd9JdNuFt+ywF10N3GuF0kGkjzM5nP2Y mogw== 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=xtAdKCfR/6M1PEgiC+ioSgh5wn0qNm3QclO0vb1mK4o=; b=fJBQWie2Vjsuec92BXB/kUrF0rRW0wXG/+5cSKpqK42niLSa8NVgWZVkqh+QUYvrVh v2+nMADbrHI1qk6q2Es/OyQ4DVmHO/OaeHhOiCS5sxpMtGjrQ2LJ416DEjS4Qnkem2AD Hsvjrur/oe6/UNnHvkg/V9o3fCfRoHfg/GVLuuVaLJT19PsmvgIV8I5Jl9jJmryVj4RO D0G7i5FUiIn5B//SOC+roTrz6mz+mJSQPh0pCYIQV4TyHIkIdYZ3/lu8Ojn8U3pKI3U7 /sfvKcs0kBZDQwRa13nON5PGzJ+tq7whORKsd54ny0Ag/P1DpbKHJLI+ehmDK0RRcln8 7rqQ== X-Gm-Message-State: AA6/9RmRQaSMFH48XbNn8IxTJRevkHTSZ6kKL7WFR6rJkQU0ldul6m12Uxj2Zap3Fq7Hx9rh8lnBNjC5/2JJ6Q== X-Received: by 10.28.43.129 with SMTP id r123mr6641377wmr.1.1475425446228; Sun, 02 Oct 2016 09:24:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.69.84 with HTTP; Sun, 2 Oct 2016 09:24:05 -0700 (PDT) From: Adriano Pallavicino Date: Sun, 2 Oct 2016 18:24:05 +0200 X-Google-Sender-Auth: -HxJGzH6en_C_GvacC3zL9CQu2U Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.20 Subject: [FFmpeg-devel] [PATCH] libavformat/bink.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 78821da34356c1700695f19923e4e8b130b96963 Mon Sep 17 00:00:00 2001 From: Adriano Pallavicino Date: Sun, 2 Oct 2016 18:16:21 +0200 Subject: [PATCH] Fix warning: [-Wmisleading-indentation] bink.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is output of gcc: libavformat/bink.c:68:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (((b[0] == 'B' && b[1] == 'I' && b[2] == 'K' && ^~ libavformat/bink.c:77:13: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ b += SMUSH_BLOCK_SIZE; Changes to be committed: modified: libavformat/bink.c Signed-off-by: Adriano Pallavicino --- libavformat/bink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/bink.c b/libavformat/bink.c index c214eb3..e6f0cb7 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -74,7 +74,7 @@ static int probe(AVProbeData *p) AV_RL32(b+24) > 0 && AV_RL32(b+24) <= BINK_MAX_HEIGHT && AV_RL32(b+28) > 0 && AV_RL32(b+32) > 0) // fps num,den return AVPROBE_SCORE_MAX; - b += SMUSH_BLOCK_SIZE; + b += SMUSH_BLOCK_SIZE; } while (smush && b < p->buf + p->buf_size - 32); return 0; } -- 2.7.4