From patchwork Sun Dec 30 08:39:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 11586 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 5ECB744C831 for ; Sun, 30 Dec 2018 10:39:52 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 16FF268A6DD; Sun, 30 Dec 2018 10:39:49 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 281E168A6F6 for ; Sun, 30 Dec 2018 10:39:42 +0200 (EET) Received: by mail-pl1-f194.google.com with SMTP id u6so11671500plm.8 for ; Sun, 30 Dec 2018 00:39:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=v/Pgtv+bXxteteOc9m7NG5iWb5r6pluJnSVFDq6zMpQ=; b=DpaEdppM6Ci2EnXlWf/Bz1rTrzsX2um+yTvHVR14Hw3x8ap1oEN2TM4xCL/Tzw/dp2 klNrY9Ta7/N/cr+dOQmDXFBIw+XSlmTB/bodzN9yUUan465W2R0etNsT6O0lF9hYBjid I0zx2rp8tTWrdfEr8BnjuQvfjE4oOGMJi8QmQIg2tM9vcZLCXiyVZzXjjHbUPPQS4tME Uk5o/h9ZOpsc0PPSUN2/kPoI9XeEzm0Su2NvbxBgxavsFJYuCRRt+ycxjtl0Xtoq9G9s F1piyLbdpTF1pQG8VuU1Wg+1RCqlAgTQN5cWK2cZm1eFTDCd9KSrEIkhpm+hoMM9+9YE 5nHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=v/Pgtv+bXxteteOc9m7NG5iWb5r6pluJnSVFDq6zMpQ=; b=S6s0a82NJDqfb/BoF5694LqImqLCrOSsZ+oKqjxC8Qi9W/AUFTqT2RMS5X3+n2EpZu Ma24P8+CQb4/8IGYuxF6Ra+Aq0A/QjXArCI0cd7seeE7IdvdnFm6vguMwX8c4QrDj+HL z39wREXWiKsdHlhpBcJ5XnlP/7McrtGcjo4A0eprfejSSZzhdkaPMnTuj3vo2j3ghhEu dyOuI0v0QTkj59amsifEXkrv7/JUzZuAaR3pHrQwuMpPts8zzGkOP/q9Q84cwUSZQo5H BDej4EjZAoN6sjau5K+QOp90ojz50yVnGN0BwCssxWrJkC3DzU8BGRRrzCzRkVxZHvKV AU3A== X-Gm-Message-State: AJcUukfupEUem8bEPv4YrUuFMl2xTIYtjLKqyWQpM7yebRRTeXgJhKHJ rNLIa8qG+hjO2pTVntZblkg5Ai6i X-Google-Smtp-Source: ALg8bN74H9OYzcoum7kQmhHlKUkhSzuuNZqEf5KGxhWwPP4QqCHiWDGrioQydyMwX5jGMdgrRVs/VA== X-Received: by 2002:a17:902:3283:: with SMTP id z3mr33985611plb.76.1546159187532; Sun, 30 Dec 2018 00:39:47 -0800 (PST) Received: from localhost.localdomain ([47.90.47.25]) by smtp.gmail.com with ESMTPSA id 196sm181584424pfc.77.2018.12.30.00.39.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Dec 2018 00:39:46 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Sun, 30 Dec 2018 16:39:31 +0800 Message-Id: <1546159173-27597-3-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1546159173-27597-1-git-send-email-mypopydev@gmail.com> References: <1546159173-27597-1-git-send-email-mypopydev@gmail.com> Subject: [FFmpeg-devel] [PATCH V1 2/4] lavc/libxavs2: Cosmetics: Fix indentation for switch statement 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: Jun Zhao MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Cosmetics: Fix indentation for switch statement like the Linux kerenl style. Signed-off-by: Jun Zhao --- libavcodec/libxavs2.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/libavcodec/libxavs2.c b/libavcodec/libxavs2.c index 1df4148..41c0b63 100644 --- a/libavcodec/libxavs2.c +++ b/libavcodec/libxavs2.c @@ -175,22 +175,22 @@ static int xavs2_encode_frame(AVCodecContext *avctx, AVPacket *pkt, } if (frame) { switch (frame->format) { - case AV_PIX_FMT_YUV420P: - if (pic.img.in_sample_size == pic.img.enc_sample_size) { - xavs2_copy_frame(&pic, frame); - } else { - const int shift_in = atoi(cae->api->opt_get(cae->param, "SampleShift")); - xavs2_copy_frame_with_shift(&pic, frame, shift_in); - } + case AV_PIX_FMT_YUV420P: + if (pic.img.in_sample_size == pic.img.enc_sample_size) { + xavs2_copy_frame(&pic, frame); + } else { + const int shift_in = atoi(cae->api->opt_get(cae->param, "SampleShift")); + xavs2_copy_frame_with_shift(&pic, frame, shift_in); + } break; - case AV_PIX_FMT_YUV420P10: - if (pic.img.in_sample_size == pic.img.enc_sample_size) { - xavs2_copy_frame(&pic, frame); - break; - } - default: - av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format\n"); - return AVERROR(EINVAL); + case AV_PIX_FMT_YUV420P10: + if (pic.img.in_sample_size == pic.img.enc_sample_size) { + xavs2_copy_frame(&pic, frame); + break; + } + default: + av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format\n"); + return AVERROR(EINVAL); break; } @@ -271,7 +271,7 @@ static const AVClass libxavs2 = { static const AVCodecDefault xavs2_defaults[] = { { "b", "0" }, - { "g", "48" }, + { "g", "48"}, { "bf", "7" }, { NULL }, };