From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 578FB44E1A for ; Thu, 23 Nov 2023 14:38:33 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 67F0968CD82; Thu, 23 Nov 2023 16:38:30 +0200 (EET) Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 61A6868CAB3 for ; Thu, 23 Nov 2023 16:38:23 +0200 (EET) Received: by mail-oi1-f172.google.com with SMTP id 5614622812f47-3b40bf434a3so194575b6e.1 for ; Thu, 23 Nov 2023 06:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700750301; x=1701355101; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=R+l+TNGOJP7RMXJ5RUsqBmLP5u7BzKlzJ5F0aagYE4o=; b=ILrv7HnYAV4GrGNJOsoM8xpVrepHQWWd1ZqZQuQ66L6VIwOFXUFyDM6ObbU7mw2cgw c0rsJXPajGE5PoWPfyr5Tq9sshnACVKbYQ2jtqcMa5vHCJpfS+jugfWwZuoJ/bLo163E zr8/X/Rz4mAbsTHHncCdNpBhHBWBizbj4AdCDGPYSNqBjyIoHPvKl/cfHKdpwzdxnPAe tJWomY8L22wJ59L3lGNuKaD4FxG3RAN3P4EjoL/nxHcQ5WUQr4UbM4t0x3UIOxXpNfXn G48YwACw25QYCM7x7hny5pWndFoPFuhzpn5npSvyWt4ZUdwL1l9VGusdavV2PBurgRKR 5EtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700750301; x=1701355101; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=R+l+TNGOJP7RMXJ5RUsqBmLP5u7BzKlzJ5F0aagYE4o=; b=NEZrrGb+t8orModDfwuRxnqChdevjZhMExzo1E9HTWo4AmpV3G+4cRDbUcsgYT8JC/ d+SIiib60XLndxNq3cb1w2Yde8Whn+dAguHATJBSz1pwxHCTWg2ynfYJv0tEZLBSAIzE 7ssqrUyutsZjYb4/m1vV3yMk+xePOhXnj+D8uGJoAvrQGUx2iRyfYZsbLWRPOHQi07Hc cjlw6YPU73vH8EeycH+gxglvJd9wCM+ooEtGp4jvAMJwoGaoi7chKHFS1HgISq8NHe6d P2UuEbdbvvRPL9JyjkHIXi8FKr9WIemSCBRKrDrbeu+RKSqNBPODt9qiEl4m9pNkzeka 2wzQ== X-Gm-Message-State: AOJu0YweTlD7DKfbLNtM+9XMYwkK+WiERNEYaviP9ojp900O/72ZhmkH A+w1JwgE/DT11wUxq635B6C9r4ssgvM= X-Google-Smtp-Source: AGHT+IHKLqUe4n1x97poIZvDbQVVu9WCDPMdrid7iGPcGZpqxU9w+ATTs/BrvZPgdChhcmd6fQHZuQ== X-Received: by 2002:a05:6358:90d:b0:16b:972a:d34f with SMTP id r13-20020a056358090d00b0016b972ad34fmr5361614rwi.2.1700750301357; Thu, 23 Nov 2023 06:38:21 -0800 (PST) Received: from gauss.local (c-68-56-149-176.hsd1.mi.comcast.net. [68.56.149.176]) by smtp.gmail.com with ESMTPSA id f9-20020ac840c9000000b004198d026be6sm514439qtm.35.2023.11.23.06.38.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 06:38:20 -0800 (PST) From: Leo Izen To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Nov 2023 09:38:19 -0500 Message-ID: <20231123143819.1227670-1-leo.izen@gmail.com> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] fftools/ffplay_renderer: declare function argument as const 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: Leo Izen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Declaring the function argument as const fixes a warning down the line that the const parameter is stripped. We don't modify this argument. Signed-off-by: Leo Izen --- fftools/ffplay_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffplay_renderer.c b/fftools/ffplay_renderer.c index a57e4980eb..45ca84fa95 100644 --- a/fftools/ffplay_renderer.c +++ b/fftools/ffplay_renderer.c @@ -133,7 +133,7 @@ static const char *optional_device_exts[] = { "VK_MESA_video_decode_av1", }; -static inline int enable_debug(AVDictionary *opt) +static inline int enable_debug(const AVDictionary *opt) { AVDictionaryEntry *entry = av_dict_get(opt, "debug", NULL, 0); int debug = entry && strtol(entry->value, NULL, 10); -- 2.42.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".