From 56450a0ee4fdda160f4039fc2ae33edfd27765c9 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 25 Feb 2021 03:11:32 +0100 Subject: avformat: Constify the API wrt AV(In|Out)putFormat Also constify AVProbeData. Signed-off-by: Andreas Rheinhardt Signed-off-by: James Almer --- doc/examples/muxing.c | 2 +- doc/examples/remuxing.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 42f704c258..014359e2ca 100644 --- a/doc/examples/muxing.c +++ b/doc/examples/muxing.c @@ -536,8 +536,8 @@ static void close_stream(AVFormatContext *oc, OutputStream *ost) int main(int argc, char **argv) { OutputStream video_st = { 0 }, audio_st = { 0 }; + const AVOutputFormat *fmt; const char *filename; - AVOutputFormat *fmt; AVFormatContext *oc; AVCodec *audio_codec, *video_codec; int ret; diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c index 9e4d1031b4..13313a1748 100644 --- a/doc/examples/remuxing.c +++ b/doc/examples/remuxing.c @@ -45,7 +45,7 @@ static void log_packet(const AVFormatContext *fmt_ctx, const AVPacket *pkt, cons int main(int argc, char **argv) { - AVOutputFormat *ofmt = NULL; + const AVOutputFormat *ofmt = NULL; AVFormatContext *ifmt_ctx = NULL, *ofmt_ctx = NULL; AVPacket pkt; const char *in_filename, *out_filename; -- cgit v1.2.3