From patchwork Mon Mar 8 15:29:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 26268 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 12E1C44AF6D for ; Mon, 8 Mar 2021 17:30:11 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DE91E68A6E7; Mon, 8 Mar 2021 17:30:10 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F339968A5A8 for ; Mon, 8 Mar 2021 17:30:04 +0200 (EET) Received: by mail-ed1-f44.google.com with SMTP id v13so15293837edw.9 for ; Mon, 08 Mar 2021 07:30:04 -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:reply-to:mime-version :content-transfer-encoding; bh=4iBUMuuPWDXm8Y+NcAx4nvJjlouU2i5xoYR/1evgrDA=; b=Q3o2xlMqrdaoL3smemu1nE5FRsBuDZ8TsmwN90VjIYzvjvPmOqNs2kQffMhKUdfPuG XG/Zal1kU3yZLxfYJiBfZIfQNj5+vD37quDDB5QxlHcOfUF6/uWrKaa0PhFoBfHsOKOh p7qpx3qsjGs0fLBu5VmB3vjlCri88h3dePF4P772hlA6IbQaEF0Bj7vxWyQ+ppJEc2uD UNLA+vfheLw9f1I5xy2xWLoEie8oz6ARtJ/bv68qTqqnjKqyKTb7TvansoN0JBFS/xMe z5U0rQsCUQfi8A2hQ+mZbc3vvLzbWYfXIfQeeiGoh0PeprtvJ5AgI4KBUIXY1Wwy4Uty DThQ== 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:reply-to :mime-version:content-transfer-encoding; bh=4iBUMuuPWDXm8Y+NcAx4nvJjlouU2i5xoYR/1evgrDA=; b=LD+jqDKIP1McjRdgykN1QNAMJLp+sdhZ3Y2BoD5r2fHs23fhv3phmokET+jB2TBN2O BfS8XUpWpVRfBLE6vAnNBxHn89TUBGO/oJZrckcide0J/yEE0Tt95pZG8ce/vJLOBxIN iDkLrNpQuywK/Por5wifphGtHQWbuv+mtmEGATeItLvs1inKpCAkvLW5j5xjoLTxW4dD XorKbSrYLBdGX65d25DH11RIAsYgM7oE1aDnHDSdMVltJNC8u2pCjGDCrmWwxaXGSHti eQx1WMn/31tr6XhuhcPMX2YRLrBzXwa8LHqoHAyMt74gq/pFwO+xQmIM7xuyEGAbyUgj 9p9Q== X-Gm-Message-State: AOAM531a6SzBVATcbq9B8ZE+m0P/KefUkMF4JM6sEF0WormRr4BMFwWZ 3Tpy7I34QECx8ptSlETpdz56wToQGJ0= X-Google-Smtp-Source: ABdhPJynAB32j3Bn3km5t1MQINseg7G110W28gEGE2+AFk/JNwE9Hn7dJe1CA5V/6ybtaQc5iWqr/g== X-Received: by 2002:a50:fa04:: with SMTP id b4mr23074719edq.293.1615217404100; Mon, 08 Mar 2021 07:30:04 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id lk12sm6665296ejb.14.2021.03.08.07.30.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Mar 2021 07:30:03 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Mon, 8 Mar 2021 16:29:53 +0100 Message-Id: <20210308152957.601419-1-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/5] avcodec/ylc: Remove write-only variable 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Andreas Rheinhardt --- libavcodec/ylc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/ylc.c b/libavcodec/ylc.c index f68fcf0bba..a200d04acd 100644 --- a/libavcodec/ylc.c +++ b/libavcodec/ylc.c @@ -58,7 +58,6 @@ static av_cold int decode_init(AVCodecContext *avctx) typedef struct Node { int16_t sym; - int16_t n0; uint32_t count; int16_t l, r; } Node; @@ -99,7 +98,6 @@ static int build_vlc(AVCodecContext *avctx, VLC *vlc, const uint32_t *table) for (i = 0; i < 256; i++) { nodes[i].count = table[i]; nodes[i].sym = i; - nodes[i].n0 = -2; nodes[i].l = i; nodes[i].r = i; } @@ -141,7 +139,6 @@ static int build_vlc(AVCodecContext *avctx, VLC *vlc, const uint32_t *table) } nodes[cur_node].count = nd + st; nodes[cur_node].sym = -1; - nodes[cur_node].n0 = cur_node; nodes[cur_node].l = first_node; nodes[cur_node].r = second_node; cur_node++;