diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-25 03:11:32 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-27 10:43:08 -0300 |
commit | 56450a0ee4fdda160f4039fc2ae33edfd27765c9 (patch) | |
tree | a7566fa8dba9d38e4c748db1d1e673aee09c5244 /doc/examples | |
parent | f0c7fa2c484e197dae05fbda70a15b5e2ce81e9a (diff) |
avformat: Constify the API wrt AV(In|Out)putFormat
Also constify AVProbeData.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/muxing.c | 2 | ||||
-rw-r--r-- | doc/examples/remuxing.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; |