Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b6d08f40
Commit
b6d08f40
authored
Nov 01, 2011
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: Add functions for doing global network initialization
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
183baead
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
1 deletion
+39
-1
APIchanges
doc/APIchanges
+3
-0
avformat.h
libavformat/avformat.h
+15
-0
utils.c
libavformat/utils.c
+20
-0
version.h
libavformat/version.h
+1
-1
No files found.
doc/APIchanges
View file @
b6d08f40
...
...
@@ -13,6 +13,9 @@ libavutil: 2011-04-18
API changes, most recent first:
2011-11-xx - xxxxxxx - lavf 53.13.0
Add avformat_network_init()/avformat_network_uninit()
2011-xx-xx - xxxxxxx - lavc 53.15.0
Remove avcodec_parse_frame.
Deprecate AVCodecContext.parse_only and CODEC_CAP_PARSE_ONLY.
...
...
libavformat/avformat.h
View file @
b6d08f40
...
...
@@ -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 */
libavformat/utils.c
View file @
b6d08f40
...
...
@@ -3964,3 +3964,23 @@ int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_co
}
return
AVERROR_PATCHWELCOME
;
}
int
avformat_network_init
(
void
)
{
#if CONFIG_NETWORK
int
ret
;
if
((
ret
=
ff_network_init
())
<
0
)
return
ret
;
ff_tls_init
();
#endif
return
0
;
}
int
avformat_network_deinit
(
void
)
{
#if CONFIG_NETWORK
ff_network_close
();
ff_tls_deinit
();
#endif
return
0
;
}
libavformat/version.h
View file @
b6d08f40
...
...
@@ -24,7 +24,7 @@
#include "libavutil/avutil.h"
#define LIBAVFORMAT_VERSION_MAJOR 53
#define LIBAVFORMAT_VERSION_MINOR 1
2
#define LIBAVFORMAT_VERSION_MINOR 1
3
#define LIBAVFORMAT_VERSION_MICRO 0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment