From patchwork Fri Sep 29 00:28:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 5333 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.61.197 with SMTP id n188csp168557jan; Thu, 28 Sep 2017 17:29:05 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAjc0D/CEvzmI1WhV9wCKbUnUJC93+Pt5klgBDwzAqsHrNJ1CRFoDqJ0y1O9yIia2+bUYeL X-Received: by 10.223.128.236 with SMTP id 99mr2566947wrl.138.1506644944940; Thu, 28 Sep 2017 17:29:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506644944; cv=none; d=google.com; s=arc-20160816; b=HyeGpyEKK77OKiGWSnTL/mFSKbooptc+srIq1Cgvjp/eeIRA7RdI46WJjrXQT/3jv0 kurtFP1tl+S4Fh6Nax3Wegu/x3swY1LEDvS/hpCY8uvuTK95+aqap8W1zxmW0qkDviic MXTRGkoGbpxIj/3pflAzqeY4Reac4CnmY5QkP7gpTulEtshfe/ZMVeT7MQJ6aPxk3i13 NiaxIMAreNFgEjop+UCIVtPH1ohSRZ1nMm9NPjyDriYzXLsT3eT0wL7NPYWZcgqvDRio vHyPYGM9rfv8GFDNN4HrZ9ZPEA2FcUq68gjA5jLQulGBd91zGPyv6DGfoHqyFv3fI+0a i0VA== 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:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=LDcYJZE4zgusG4PY4YV2ssNZP5av666cFYaT656d1Sw=; b=JvpOHFHjxhRg9+uyiUNL9q6bh/xpMKusoq2zxx8JWWmBZf1PP8LBPHdCFybAZybgjc NqZ1Sr8AvMNRIEk+v27bVTLNtmmTdrJi9QWwKmHZPo6KIKk1/yfl2WIKWgcDhtDMls65 v0hHGdFXYit/9Pq6D9wHIN6tmMe57qsO+yIbLlRjQ9iyL3+nBnDDJKAyJVOGQsXdFzn4 3Lg/syBWNes3mF3Mw+nwug0giEtex5XRELYeY77abtMw92jl1gFffbtj8lYRHMybb6P5 F8vGiNHdkI175fDwcq+AXLCz5fyDIqjEJyMdBz78lvPr0LHRDtTVez0xEO7BQqJkStx/ Vbdw== 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 u205si178984wmb.6.2017.09.28.17.29.04; Thu, 28 Sep 2017 17:29:04 -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 E40CC6899F1; Fri, 29 Sep 2017 03:28:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-qmta-pe02-2.mx.upcmail.net (vie01a-qmta-pe02-2.mx.upcmail.net [62.179.121.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 87AB56899E6 for ; Fri, 29 Sep 2017 03:28:44 +0300 (EEST) Received: from [172.31.218.31] (helo=vie01a-dmta-pe01-1.mx.upcmail.net) by vie01a-pqmta-pe02.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dxjAn-0008Dw-AO for ffmpeg-devel@ffmpeg.org; Fri, 29 Sep 2017 02:28:57 +0200 Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1dxjAh-0001Cl-Ul for ffmpeg-devel@ffmpeg.org; Fri, 29 Sep 2017 02:28:51 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id FCUn1w00y0S5wYM01CUoee; Fri, 29 Sep 2017 02:28:48 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Fri, 29 Sep 2017 02:28:44 +0200 Message-Id: <20170929002844.27477-3-michael@niedermayer.cc> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20170929002844.27477-1-michael@niedermayer.cc> References: <20170929002844.27477-1-michael@niedermayer.cc> Subject: [FFmpeg-devel] [PATCH 3/3] avfilter/vf_thumbnail_cuda: Avoid mixing declaration and statements 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" Signed-off-by: Michael Niedermayer --- libavfilter/vf_thumbnail_cuda.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_thumbnail_cuda.c b/libavfilter/vf_thumbnail_cuda.c index 4c08a85121..09377ca7f4 100644 --- a/libavfilter/vf_thumbnail_cuda.c +++ b/libavfilter/vf_thumbnail_cuda.c @@ -269,7 +269,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) if (hw_frames_ctx->sw_format == AV_PIX_FMT_NV12 || hw_frames_ctx->sw_format == AV_PIX_FMT_YUV420P || hw_frames_ctx->sw_format == AV_PIX_FMT_P010LE || hw_frames_ctx->sw_format == AV_PIX_FMT_P016LE) { - for (int i = 256; i < HIST_SIZE; i++) + int i; + for (i = 256; i < HIST_SIZE; i++) hist[i] = 4 * hist[i]; }