From patchwork Tue Mar 16 06:22:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zane van Iperen X-Patchwork-Id: 26406 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 ABC5944BC9E for ; Tue, 16 Mar 2021 08:23:11 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 909AF68AEBF; Tue, 16 Mar 2021 08:23:11 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3539D68AE9D for ; Tue, 16 Mar 2021 08:23:04 +0200 (EET) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zanevaniperen.com; s=key1; t=1615875783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g43x3D5dqIumvG0Pv94OYtzmYlcV4BICbrdnOTp/nvg=; b=CvhnvklcBBwnRz4eVNqIeL2lRN3xkO/Co2BS00B2t3+CSQIG/aGCCmQ0SapDqlcP011lST J9oihlx7ra4AU1PAizPceOm3gSx+Inm9TlZg/Va+7JTO7RO3wEVnmTuPWBh0R8SNf0Wcbl fw+jbG49OAAQuiXARkFLPsdsVyyrm1JAsUsSRFp0c/wNd/IIhymGZcz76ldR6J3Yvpva3g /dMOity/7PvUi3sCdNzjozB2E8t/5kLJVOpmGi+o7JWZdrWwXp8+oWWvSO1O/baTZLOPMD O/uMBo/Fi9tSaAjEGjKa1iKDiBiiDCnxvFRRNLZ5FbmpB/9qnTUuqyiTEXz4ng== From: Zane van Iperen To: ffmpeg-devel@ffmpeg.org Date: Tue, 16 Mar 2021 16:22:52 +1000 Message-Id: <20210316062254.22531-2-zane@zanevaniperen.com> In-Reply-To: <20210316062254.22531-1-zane@zanevaniperen.com> References: <20210316062254.22531-1-zane@zanevaniperen.com> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: git-morningstar@zanevaniperen.com Subject: [FFmpeg-devel] [PATCH 2/4] avcodec/adpcm_ima_cunning: reindent 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: Zane van Iperen Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Zane van Iperen --- libavcodec/adpcm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 44f14763fb..5b6d1040af 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -1379,11 +1379,11 @@ static int adpcm_decode_frame(AVCodecContext *avctx, void *data, case AV_CODEC_ID_ADPCM_IMA_CUNNING: for (channel = 0; channel < avctx->channels; channel++) { int16_t *smp = samples_p[channel]; - for (n = 0; n < nb_samples / 2; n++) { - int v = bytestream2_get_byteu(&gb); - *smp++ = adpcm_ima_cunning_expand_nibble(&c->status[channel], v & 0x0F); - *smp++ = adpcm_ima_cunning_expand_nibble(&c->status[channel], v >> 4); - } + for (n = 0; n < nb_samples / 2; n++) { + int v = bytestream2_get_byteu(&gb); + *smp++ = adpcm_ima_cunning_expand_nibble(&c->status[channel], v & 0x0F); + *smp++ = adpcm_ima_cunning_expand_nibble(&c->status[channel], v >> 4); + } } break; case AV_CODEC_ID_ADPCM_IMA_OKI: