From patchwork Fri Mar 3 21:08:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devin Heitmueller X-Patchwork-Id: 40581 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:d046:b0:cd:afd7:272c with SMTP id hv6csp1078130pzb; Fri, 3 Mar 2023 13:08:52 -0800 (PST) X-Google-Smtp-Source: AK7set+CKrhzUndD6Ea+6YUtyn0LdZldKA3rOtSJXqXIRGbutFB18nNZhdDKu+nfA9ItPCHeqSCq X-Received: by 2002:a17:906:b1cc:b0:8b1:7684:dfab with SMTP id bv12-20020a170906b1cc00b008b17684dfabmr3435964ejb.38.1677877732400; Fri, 03 Mar 2023 13:08:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677877732; cv=none; d=google.com; s=arc-20160816; b=mi/l/Cg7IP9IDdV1LvPyXUQKgr+RIqqOdGh6aIqF+sT+cMtu9AdiEn8UzwwUqVSC06 +z+5632hlqKYTcHg8bozxFLvuhW9M02YhwYballhHkz1XMeX+UNU7i512akbUBOapdIY PvzeANssvAhGCjPNxA2dd4CmrZr6gwfWYh+WM7HUAYYBu/wto6Of8E2gRnyg1CsTVCjy lEtxdNZbUtAcqsz3jFbl+U0PefLegevhj7wG7K0r+QH4vz8Dv1zm7bXbZYFMz9p4ziSf //aZWurpVhlOFvX088pxQJ92ORNsMY+4+rG9aM13cdIzPPYlTtws2jnhsxscNVgiMk4D +OBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=yv/CZBMfOK3inawqsb+yLh5KTgTmYDFhinzWc3OR/hA=; b=IBq4pUDU7RTk+QzgXQ67q2eIpNqMsAHBqCHPRIPfqZkF6trGN9IHsp7fVZ+WKb+oYA 3pIR90wi/Dj5PYzr5bJCb5wD1pfGjpuf0RojNKqTclvnSL9pjk7bl3sYEOSohiy7Kwv2 vVNyxIWQe705jQqjVYikTnt5Gsn7zpWlJlpkOPNhkkxYRCofelTCz3WRpllgUsj8j+AZ 0kNPFhciwXaCcUQGW+YfzTpx+ATGp+eopJqwPI7ZJyTavDFBZ/G7pox9JU3DDn4FfOb2 X5TBhZUhU7HEFBP7kyzsCOCSHO8tnyTMJNFnL3GAYtD+0ggSHuQdOVLd99XNu7tgN3Ji pGDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ltnglobal-com.20210112.gappssmtp.com header.s=20210112 header.b=eelf1TuI; 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 t13-20020a1709063e4d00b008cc7edc802csi998013eji.149.2023.03.03.13.08.52; Fri, 03 Mar 2023 13:08:52 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@ltnglobal-com.20210112.gappssmtp.com header.s=20210112 header.b=eelf1TuI; 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 6D4D968BB00; Fri, 3 Mar 2023 23:08:31 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C1FCD68B5A9 for ; Fri, 3 Mar 2023 23:08:22 +0200 (EET) Received: by mail-qv1-f46.google.com with SMTP id nf5so2651728qvb.5 for ; Fri, 03 Mar 2023 13:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ltnglobal-com.20210112.gappssmtp.com; s=20210112; t=1677877701; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nffFRO7Mvqiv9LPBYdo9ShaEtMyOXZJ1D3rN+6SVOzM=; b=eelf1TuIWKVUAeK7waEXlO96Mh2YptzSgCDz4ZN6HjJ4VExP0lCRv8GXXtcuB8fXWQ X/B7cPC3kXdYJj9K7hpf5YGVilp+8kUf+Y29bNGC70dpEAsELliI/GSBXqA/RfK0jPQr pxjlvz/vYYcAyYKKbySWrEHyvZEydrW8Ut90R6GItQ6c+aNekZAptoQpmNwkLeH6nljw 8SOoCB0/uLw24nBL8FV1uTPQq/DoLcxy+iTwUiQjSUlrDJuc8VF0Iec0BuoSa2aD1Izu PVo1BZiMgzgQ63Mx1w/RLhyIuP8CriTMrqDDfWLl5sWJTondjQNTkGu4PjAAvq3rWfQM yd3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677877701; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nffFRO7Mvqiv9LPBYdo9ShaEtMyOXZJ1D3rN+6SVOzM=; b=JqxVhHMhfklBuXjdySkUcORMCW0QkPxhAqGcQckOTOeP4wZ9BX9lXhvAr/VSDTRG/2 Ur/eafK72QpjS3gh8x+kZra0WgxyrOC1eFj+Np0VFdjFtvQhSmjT4BJ1BsdWvoW4KFjt iwGY346ioS3AAViMm3pVMVoVGH2tnpCdNzPLSO5ZjabhcyWTLAIRh8YksRJ6eweoDTkN /G/CVqpcZyoVPl3dDSTOj4Fa0mJocGtoNI0Q3ZCtBWQMXap7BAFsnd9nhHVLZJKkE7Yn pNmLgNLc1FNPxxRvrnbo8q6prpthO66+p32LqrPG6CNwiGxMuhJVKTwK5vnMUPL1OUUK npYQ== X-Gm-Message-State: AO0yUKVev947KpCdCFeo7/jTh/Kj84/BoMry0ir7uxtbMwiLoNh7dtjB cEnl+6PFvx1DYDKdz5SIuQjRG7nInimuY89lMy4= X-Received: by 2002:a05:6214:5092:b0:56f:5466:20d8 with SMTP id kk18-20020a056214509200b0056f546620d8mr4314490qvb.3.1677877701358; Fri, 03 Mar 2023 13:08:21 -0800 (PST) Received: from klab-nyc-kernellabs2.localdomain (pool-71-105-132-214.nycmny.fios.verizon.net. [71.105.132.214]) by smtp.gmail.com with ESMTPSA id e10-20020a05620a014a00b0071a02d712b0sm2442991qkn.99.2023.03.03.13.08.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2023 13:08:20 -0800 (PST) From: Devin Heitmueller X-Google-Original-From: Devin Heitmueller To: ffmpeg-devel@ffmpeg.org Date: Fri, 3 Mar 2023 16:08:15 -0500 Message-Id: <20230303210815.23692-3-dheitmueller@ltnglobal.com> X-Mailer: git-send-email 2.35.1.655.ga68dfadae5 In-Reply-To: <20230303210815.23692-1-dheitmueller@ltnglobal.com> References: <20230303210815.23692-1-dheitmueller@ltnglobal.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 3/3] decklink: Fix unused variable compiler warnings X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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: Devin Heitmueller Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: s+iGgx+5Fnfx Due to refactoring, the ctx/cctx variables are never actually used in ff_decklink_write_packet(), so just remove them. Signed-off-by: Devin Heitmueller --- libavdevice/decklink_enc.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavdevice/decklink_enc.cpp b/libavdevice/decklink_enc.cpp index 573b9e687c..8d423f6b6e 100644 --- a/libavdevice/decklink_enc.cpp +++ b/libavdevice/decklink_enc.cpp @@ -627,8 +627,6 @@ error: int ff_decklink_write_packet(AVFormatContext *avctx, AVPacket *pkt) { - struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data; - struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx; AVStream *st = avctx->streams[pkt->stream_index]; if (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO)