diff options
author | Marton Balint <cus@passwd.hu> | 2023-02-13 01:50:12 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2023-02-16 01:18:45 +0100 |
commit | 927042b409fc19a62085888b3a349d7e9e013b2e (patch) | |
tree | cea29731316882fce243bddbb7e30229d92c3895 /libavformat/segment.c | |
parent | eee6492df7a7dc6f70170eb6e8a14ae00d12afc8 (diff) | |
download | ffmpeg-927042b409fc19a62085888b3a349d7e9e013b2e.tar.gz |
avformat: deprecate AVFormatContext io_close callback
io_close2 should be used instead.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/segment.c')
-rw-r--r-- | libavformat/segment.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c index eb629b342c..2a82f39f31 100644 --- a/libavformat/segment.c +++ b/libavformat/segment.c @@ -160,7 +160,11 @@ static int segment_mux_init(AVFormatContext *s) oc->max_delay = s->max_delay; av_dict_copy(&oc->metadata, s->metadata, 0); oc->opaque = s->opaque; +#if FF_API_AVFORMAT_IO_CLOSE +FF_DISABLE_DEPRECATION_WARNINGS oc->io_close = s->io_close; +FF_ENABLE_DEPRECATION_WARNINGS +#endif oc->io_close2 = s->io_close2; oc->io_open = s->io_open; oc->flags = s->flags; |