diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-01 13:40:04 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-05 12:17:51 +0200 |
commit | b6d08f40aa9893c77a982fc17c289da0c27ccd96 (patch) | |
tree | 55805e2b06f08fb31f3d50822ed01ff0339a717f /libavformat/avformat.h | |
parent | 183baeadca74f4087b58dc5a94a649473f28470c (diff) | |
download | ffmpeg-b6d08f40aa9893c77a982fc17c289da0c27ccd96.tar.gz |
avformat: Add functions for doing global network initialization
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index dd40c7fafb..43563031c1 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1743,4 +1743,19 @@ int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_co */ const AVClass *avformat_get_class(void); +/** + * Do global initialization of network components. This is optional, + * but recommended, since it avoids the overhead of implicitly + * doing the setup for each session. + * + * Since the next major version bump, calling this function will become + * mandatory if using network protocols. + */ +int avformat_network_init(void); + +/** + * Undo the initialization done by avformat_network_init. + */ +int avformat_network_deinit(void); + #endif /* AVFORMAT_AVFORMAT_H */ |