summaryrefslogtreecommitdiff
path: root/libavformat/dashenc.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-02-13 01:50:12 +0100
committerMarton Balint <cus@passwd.hu>2023-02-16 01:18:45 +0100
commit927042b409fc19a62085888b3a349d7e9e013b2e (patch)
treecea29731316882fce243bddbb7e30229d92c3895 /libavformat/dashenc.c
parenteee6492df7a7dc6f70170eb6e8a14ae00d12afc8 (diff)
avformat: deprecate AVFormatContext io_close callback
io_close2 should be used instead. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/dashenc.c')
-rw-r--r--libavformat/dashenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 52865eacb5..17fe5f430c 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1551,7 +1551,11 @@ static int dash_init(AVFormatContext *s)
return AVERROR_MUXER_NOT_FOUND;
ctx->interrupt_callback = s->interrupt_callback;
ctx->opaque = s->opaque;
+#if FF_API_AVFORMAT_IO_CLOSE
+FF_DISABLE_DEPRECATION_WARNINGS
ctx->io_close = s->io_close;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
ctx->io_close2 = s->io_close2;
ctx->io_open = s->io_open;
ctx->strict_std_compliance = s->strict_std_compliance;