From patchwork Fri Oct 14 18:46:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 1007 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.133 with SMTP id o127csp43155vsd; Fri, 14 Oct 2016 11:47:12 -0700 (PDT) X-Received: by 10.194.42.69 with SMTP id m5mr3101164wjl.101.1476470832168; Fri, 14 Oct 2016 11:47:12 -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 sd8si26427617wjb.131.2016.10.14.11.47.10; Fri, 14 Oct 2016 11:47:12 -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 9F3F56898EF; Fri, 14 Oct 2016 21:47:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 737436898CE for ; Fri, 14 Oct 2016 21:46:55 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 9318C100B24; Fri, 14 Oct 2016 20:46:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6bKIQCZdFU7Q; Fri, 14 Oct 2016 20:46:55 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 64E47102CBF; Fri, 14 Oct 2016 20:46:55 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Fri, 14 Oct 2016 20:46:32 +0200 Message-Id: <1476470792-3926-2-git-send-email-cus@passwd.hu> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1476470792-3926-1-git-send-email-cus@passwd.hu> References: <1476470792-3926-1-git-send-email-cus@passwd.hu> Subject: [FFmpeg-devel] [PATCH 2/2] lavd/decklink_dec: fix 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 Cc: Deti Fliegl , Marton Balint MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Marton Balint --- libavdevice/decklink_dec.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp index 5318bbe..c98c51f 100644 --- a/libavdevice/decklink_dec.cpp +++ b/libavdevice/decklink_dec.cpp @@ -310,17 +310,17 @@ HRESULT decklink_input_callback::VideoInputFrameArrived( if (videoFrame->GetFlags() & bmdFrameHasNoInputSource) { if (ctx->draw_bars && videoFrame->GetPixelFormat() == bmdFormat8BitYUV) { - unsigned bars[8] = { - 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035, - 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 }; - int width = videoFrame->GetWidth(); - int height = videoFrame->GetHeight(); - unsigned *p = (unsigned *)frameBytes; - - for (int y = 0; y < height; y++) { - for (int x = 0; x < width; x += 2) - *p++ = bars[(x * 8) / width]; - } + unsigned bars[8] = { + 0xEA80EA80, 0xD292D210, 0xA910A9A5, 0x90229035, + 0x6ADD6ACA, 0x51EF515A, 0x286D28EF, 0x10801080 }; + int width = videoFrame->GetWidth(); + int height = videoFrame->GetHeight(); + unsigned *p = (unsigned *)frameBytes; + + for (int y = 0; y < height; y++) { + for (int x = 0; x < width; x += 2) + *p++ = bars[(x * 8) / width]; + } } if (!no_video) {