diff mbox series

[FFmpeg-devel,13/20] fftools/ffmpeg_mux_init: constify metadata specifier arguments

Message ID 20221018123701.25002-13-anton@khirnov.net
State Accepted
Commit ccab8235599062b4ebbec86cb7096c43b85261c5
Headers show
Series [FFmpeg-devel,01/20] fftools/ffmpeg_opt: move opening input files to ffmpeg_demux.c | expand


Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Oct. 18, 2022, 12:36 p.m. UTC
 fftools/ffmpeg_mux_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series


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;