From patchwork Tue Oct 18 12:36:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 38793 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:4a86:b0:9d:28a3:170e with SMTP id fn6csp2083515pzb; Tue, 18 Oct 2022 05:40:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ivDwK3hlb7AbGnXwPpk5hZLh2J5nylVQUS3lAVPNfvUoFq+3HAWnpM5cdALcVzcsL0kWl X-Received: by 2002:a17:906:846e:b0:78d:ed3c:edfa with SMTP id hx14-20020a170906846e00b0078ded3cedfamr2225869ejc.515.1666096837279; Tue, 18 Oct 2022 05:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666096837; cv=none; d=google.com; s=arc-20160816; b=RGU3WxruEIA7iXEALVWHBcblZgjEc9wCZWdTDa53qJOZxflT6bhNi7cGzPoZ1E+smI XsKuS1al4Y/oMEDiNr8ZDQ8WshovPrOr2ExBP6og+mnpsPPepxE5eltffcg6wnQPu0Co WgmyYfzo3qzDU/xkxolz8lFLZXNdccFwowItkPfz8tMq/yokY+Q/THc7xEUe0sdry6Gu UfeGt1ZzBd2agVbHkMrWbllHTlXtRgBxEGO9FAQ2UmLcQtaeNvwIX5BLXyTCYJ4It0Zv Z1XjERDF5udpQuWlCZ9MY34Qp7wh+hr7h4O3+2n+3xbSwxntMBU59DS0mon0PAcHD+hP ToEA== 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:mime-version:references:in-reply-to:message-id :date:to:from:delivered-to; bh=V55C05PAlObuAwywcFKQoJ28aG8hRQbPdiYq+nVC+qI=; b=I/sx1abeoXMswa8AoklHg0V7t8Vu+2ZYiURiqHQ4B+ufk84ADPDT+L3O5evAfthG8T s9GBbtifEpEaKwq1Q6+L5cTtIt1lQ59qzvNhk4ZH4dAgu3o8j43kw9YOGqP4RntPGNZS 7riayd0ZHfgHhi4c5v5R7or4xRRYjTiN6M3oWFWPeo5en7wU0Oxwlq3fqBGDFQwHPoBC y44din7/gn9IIEQqu0NAaJyubb0YROmpGDGT/D0kurIu/SnaCaAsfeD3V19Zp94kjclK e8lSw3QQldO1pRC5jWA5GhGtLrEa4n+h8HPaA7K9tfSYQzsFuvHOijwjbxHd0z8iV6O9 sXKg== ARC-Authentication-Results: i=1; mx.google.com; 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 sg19-20020a170907a41300b00782161b3422si12514743ejc.914.2022.10.18.05.40.36; Tue, 18 Oct 2022 05:40:37 -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; 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 6944268BDBD; Tue, 18 Oct 2022 15:38:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail0.khirnov.net (red.khirnov.net [176.97.15.12]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D6CB468BD35 for ; Tue, 18 Oct 2022 15:38:21 +0300 (EEST) Received: from localhost (localhost [IPv6:::1]) by mail0.khirnov.net (Postfix) with ESMTP id 6581A2404E4 for ; Tue, 18 Oct 2022 14:38:21 +0200 (CEST) Received: from mail0.khirnov.net ([IPv6:::1]) by localhost (mail0.khirnov.net [IPv6:::1]) (amavisd-new, port 10024) with ESMTP id ksSC-yFEx3HV for ; Tue, 18 Oct 2022 14:38:20 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail0.khirnov.net (Postfix) with ESMTPS id DAC922406D1 for ; Tue, 18 Oct 2022 14:38:13 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id C65913A1A26 for ; Tue, 18 Oct 2022 14:38:13 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Tue, 18 Oct 2022 14:36:54 +0200 Message-Id: <20221018123701.25002-13-anton@khirnov.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221018123701.25002-1-anton@khirnov.net> References: <20221018123701.25002-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 13/20] fftools/ffmpeg_mux_init: constify metadata specifier arguments 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: 53VXmVLO2Ng5 --- fftools/ffmpeg_mux_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fftools/ffmpeg_mux_init.c b/fftools/ffmpeg_mux_init.c index f608376cf0..a471bbf469 100644 --- a/fftools/ffmpeg_mux_init.c +++ b/fftools/ffmpeg_mux_init.c @@ -1272,7 +1272,7 @@ static void of_add_programs(AVFormatContext *oc, const OptionsContext *o) * @param index for type c/p, chapter/program index is written here * @param stream_spec for type s, the stream specifier is written here */ -static void parse_meta_type(char *arg, char *type, int *index, const char **stream_spec) +static void parse_meta_type(const char *arg, char *type, int *index, const char **stream_spec) { if (*arg) { *type = *arg; @@ -1443,7 +1443,7 @@ static int copy_chapters(InputFile *ifile, OutputFile *ofile, AVFormatContext *o return 0; } -static int copy_metadata(char *outspec, char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o) +static int copy_metadata(const char *outspec, const char *inspec, AVFormatContext *oc, AVFormatContext *ic, OptionsContext *o) { AVDictionary **meta_in = NULL; AVDictionary **meta_out = NULL;