From patchwork Mon Oct 18 21:31:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chad Fraleigh X-Patchwork-Id: 31150 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp3749510ioa; Mon, 18 Oct 2021 14:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9qYnGXNjPMYOg6na3cfbhEc91xlCMurxZU/bMZauIZoecm+pnB+Jv5yLKrEbO0bE5z2D7 X-Received: by 2002:aa7:d444:: with SMTP id q4mr17162997edr.7.1634592711428; Mon, 18 Oct 2021 14:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634592711; cv=none; d=google.com; s=arc-20160816; b=IgecnSSZGWx5dYom8AQ3+0m82R8QdI+eO8+uxOo29kwtubHkdyQoqhOl7H7JnEKppJ dQ+qFKZj1kuAe5U4cCG9grBchMYKYXHyUsXySx9k5v5Q5yDrkfFYoOzW0w/u8HE/RgPO C+zVGfy1z0Jb/6+W7s/fxwuDls9tkLcTBevUnfXivTn41ZrG/J7mS9EtCPwJv8AKT6zy SUIbsJfWzvsfM967poi3RJhqzpSjPH29kgY+OCE4RG57qL7Pja90XOfXnV7tMYYaSAl6 xYTQWYp4VeOmLVywZVbw46CuhZkj55gdlrVnElPeK6x8W5lUdeIlf4yfh9SLTY15Iw7s p4Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:content-language:to:from:user-agent:mime-version :date:message-id:dkim-signature:delivered-to; bh=qZIjnP0gwF2X2wxsUlt+aYS2vGvh33JbCBqBt8GXxtM=; b=Zgr6du+yeAmkcAaE7Jecquhn+fI9IbTztVmT6SmXXBvE/dKUxkSbwIzuJ2NpA9KZ/l wDMaPb9GyiXiloZSor0M2ko//kqD1jEp67VuMjwUdWlRbTu6MiP/EgrThXz3U0cK9Xbc g4ZYnOFhk6mbGXXBjF56P29U/bhG2OqwPE6WTI0RHC3Je+zBDBtPrEPRSbYscn5NuVbp JTkKcYmuTOrKO6NyacsTfeOzN0uZpI6hx3wfZA5qmTmdCDi97i6V6iKWvOCTTqdwyMYa IlAComPvVz7LAjR/ObB0YUOPEBmaTjATdpVKbuH2VzdHhUfyg53bfaGPBp/6hO2gPstD nTuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@triularity-org.20210112.gappssmtp.com header.s=20210112 header.b=lKBu7yR7; 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 cu17si21714603ejb.676.2021.10.18.14.31.51; Mon, 18 Oct 2021 14:31:51 -0700 (PDT) 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=@triularity-org.20210112.gappssmtp.com header.s=20210112 header.b=lKBu7yR7; 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 F315568A133; Tue, 19 Oct 2021 00:31:47 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 87D266800A1 for ; Tue, 19 Oct 2021 00:31:40 +0300 (EEST) Received: by mail-pj1-f54.google.com with SMTP id ls18-20020a17090b351200b001a00250584aso405387pjb.4 for ; Mon, 18 Oct 2021 14:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=triularity-org.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to :content-language:content-transfer-encoding; bh=mGFtAjcklBWciTQkec00epnr+bFLthuKzX3Ml1dFJV4=; b=lKBu7yR7lUGm6dSxb8bN/3N3mNBpOzFrgkMnoPuxsXA0Ww3upPME1quO9YGoHvPfmn 11UIHmoOWqjik9mC5zZUv+NWh2Cy4rcdB+YRR+JFrIFObl7g+KJqyDS6q/NcteeVGRdz ftK+ObHcCfzYvouyhrR98hL3UV9mpC4qqgvkb1RKd+nx/nsk1c8mjAyxUoVsEwoT2xqb lWurC0GNh7x/oa1PUxBSRAQDUh6tSPv7SIuBWC7ZTrDR8NrXfHbX4g0xhiSkMZSO8muL Qrdtlx1s78gKFOcIoUA9rwBLj0Rr/kATn5FmUAmeH2Po4G18J8YknSZrNMK55lJi4wzz KGrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:content-language:content-transfer-encoding; bh=mGFtAjcklBWciTQkec00epnr+bFLthuKzX3Ml1dFJV4=; b=aTKwkecfmU6rMzaAD7pR/iivUgXL59HvO6RiEKCZXfEiHRPt4XZ56uwDNqA1pMdvox m9C3es0vdysVD9KqVIRrMJ1WyuJjvwaFSZtRix07IsUZcmC0Vdw1Q9cVZG+YD8B+WXOy FeBTugMaAS/gJPr65y/ZvrmCbaVKOZr/5IkhAoxoBqVat2CncbMLSzCzlbh0hCMw/FPt LLh4OD83G48iZdFhWJCsW8Ycr/dFrCYFvXK0WgSxKapqdMqM+dyleYBVAWm69XfcZitr U7t597YHdFbx1kQ+PAWeVIVeKlgBtHD0upF+q2pTG7vuWXQCm1JkVoUclEonf+T32lFp gAxQ== X-Gm-Message-State: AOAM533biv2NI5FnEVJw2IlUaDazBE19faxyN31bVKAIWehjPsD7C6DC qr+ihNrGpXX8TMRRcz9qHLqayLGoUX57PMtJNeg= X-Received: by 2002:a17:902:c20c:b0:13f:5507:bdc8 with SMTP id 12-20020a170902c20c00b0013f5507bdc8mr29608169pll.56.1634592698367; Mon, 18 Oct 2021 14:31:38 -0700 (PDT) Received: from ?IPV6:2601:603:5000:f89:5947:de06:6c2c:d8c6? ([2601:603:5000:f89:5947:de06:6c2c:d8c6]) by smtp.gmail.com with ESMTPSA id l11sm3481357pfu.55.2021.10.18.14.31.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Oct 2021 14:31:37 -0700 (PDT) Message-ID: Date: Mon, 18 Oct 2021 14:31:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 From: Chad Fraleigh To: ffmpeg-devel@ffmpeg.org Content-Language: en-US Subject: [FFmpeg-devel] [PATCH 1/6] doc/examples/metadata.c: constify values from av_dict_get(). 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: egzdPYCPlfuU Treat values returned from av_dict_get() as const, since they are internal to AVDictionary. Signed-off-by: Chad Fraleigh --- doc/examples/metadata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/metadata.c b/doc/examples/metadata.c index b6cfa6bd36..7c44009a24 100644 --- a/doc/examples/metadata.c +++ b/doc/examples/metadata.c @@ -34,7 +34,7 @@ int main (int argc, char **argv) { AVFormatContext *fmt_ctx = NULL; - AVDictionaryEntry *tag = NULL; + const AVDictionaryEntry *tag = NULL; int ret; if (argc != 2) {