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/fifo.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/fifo.c')
-rw-r--r-- | libavformat/fifo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/fifo.c b/libavformat/fifo.c index ebadeef645..9a3a23729c 100644 --- a/libavformat/fifo.c +++ b/libavformat/fifo.c @@ -501,7 +501,11 @@ static int fifo_mux_init(AVFormatContext *avf, const AVOutputFormat *oformat, if (ret < 0) return ret; avf2->opaque = avf->opaque; +#if FF_API_AVFORMAT_IO_CLOSE +FF_DISABLE_DEPRECATION_WARNINGS avf2->io_close = avf->io_close; +FF_ENABLE_DEPRECATION_WARNINGS +#endif avf2->io_close2 = avf->io_close2; avf2->io_open = avf->io_open; avf2->flags = avf->flags; |