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 | |
parent | f0c7fa2c484e197dae05fbda70a15b5e2ce81e9a (diff) | |
download | ffmpeg-56450a0ee4fdda160f4039fc2ae33edfd27765c9.tar.gz |
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')
-rw-r--r-- | doc/APIchanges | 11 | ||||
-rw-r--r-- | doc/examples/muxing.c | 2 | ||||
-rw-r--r-- | doc/examples/remuxing.c | 2 |
3 files changed, 13 insertions, 2 deletions
diff --git a/doc/APIchanges b/doc/APIchanges index 095e9aed99..c69624038c 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -14,6 +14,17 @@ libavutil: 2017-10-21 API changes, most recent first: + +2021-04-27 - xxxxxxxxxx - lavf yyyyyyyyy - avformat.h + Constified the pointers to AVInputFormats and AVOutputFormats + in AVFormatContext, avformat_alloc_output_context2(), + av_find_input_format(), av_probe_input_format(), + av_probe_input_format2(), av_probe_input_format3(), + av_probe_input_buffer2(), av_probe_input_buffer(), + avformat_open_input(), av_guess_format() and av_guess_codec(). + Furthermore, constified the AVProbeData in av_probe_input_format(), + av_probe_input_format2() and av_probe_input_format3(). + 2021-04-19 - xxxxxxxxxx - lavu 56.74.100 - tx.h Add AV_TX_FULL_IMDCT and AV_TX_UNALIGNED. 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; |