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
8e76a19b
Commit
8e76a19b
authored
Apr 04, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: make av_register_protocol2 internal.
parent
80c6e238
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
allformats.c
libavformat/allformats.c
+2
-1
avio.c
libavformat/avio.c
+7
-3
avio.h
libavformat/avio.h
+3
-1
url.h
libavformat/url.h
+7
-0
No files found.
libavformat/allformats.c
View file @
8e76a19b
...
...
@@ -21,6 +21,7 @@
#include "avformat.h"
#include "rtp.h"
#include "rdt.h"
#include "url.h"
#define REGISTER_MUXER(X,x) { \
extern AVOutputFormat ff_##x##_muxer; \
...
...
@@ -34,7 +35,7 @@
#define REGISTER_PROTOCOL(X,x) { \
extern URLProtocol ff_##x##_protocol; \
if(CONFIG_##X##_PROTOCOL)
av_register_protocol2
(&ff_##x##_protocol, sizeof(ff_##x##_protocol)); }
if(CONFIG_##X##_PROTOCOL)
ffurl_register_protocol
(&ff_##x##_protocol, sizeof(ff_##x##_protocol)); }
void
av_register_all
(
void
)
{
...
...
libavformat/avio.c
View file @
8e76a19b
...
...
@@ -57,7 +57,7 @@ URLProtocol *av_protocol_next(URLProtocol *p)
else
return
first_protocol
;
}
int
av_register_protocol2
(
URLProtocol
*
protocol
,
int
size
)
int
ffurl_register_protocol
(
URLProtocol
*
protocol
,
int
size
)
{
URLProtocol
**
p
;
if
(
size
<
sizeof
(
URLProtocol
))
{
...
...
@@ -86,12 +86,12 @@ struct URLProtocol_compat {
int
av_register_protocol
(
URLProtocol
*
protocol
)
{
return
av_register_protocol2
(
protocol
,
sizeof
(
struct
URLProtocol_compat
));
return
ffurl_register_protocol
(
protocol
,
sizeof
(
struct
URLProtocol_compat
));
}
int
register_protocol
(
URLProtocol
*
protocol
)
{
return
av_register_protocol2
(
protocol
,
sizeof
(
struct
URLProtocol_compat
));
return
ffurl_register_protocol
(
protocol
,
sizeof
(
struct
URLProtocol_compat
));
}
#endif
...
...
@@ -220,6 +220,10 @@ void url_set_interrupt_cb(URLInterruptCB *interrupt_cb)
{
avio_set_interrupt_cb
(
interrupt_cb
);
}
int
av_register_protocol2
(
URLProtocol
*
protocol
,
int
size
)
{
return
ffurl_register_protocol
(
protocol
,
size
);
}
#endif
#define URL_SCHEME_CHARS \
...
...
libavformat/avio.h
View file @
8e76a19b
...
...
@@ -184,12 +184,14 @@ attribute_deprecated int register_protocol(URLProtocol *protocol);
attribute_deprecated
int
av_register_protocol
(
URLProtocol
*
protocol
);
#endif
#if FF_API_OLD_AVIO
/**
* Register the URLProtocol protocol.
*
* @param size the size of the URLProtocol struct referenced
*/
int
av_register_protocol2
(
URLProtocol
*
protocol
,
int
size
);
attribute_deprecated
int
av_register_protocol2
(
URLProtocol
*
protocol
,
int
size
);
#endif
#define AVIO_SEEKABLE_NORMAL 0x0001
/**< Seeking works like for a local file */
...
...
libavformat/url.h
View file @
8e76a19b
...
...
@@ -131,4 +131,11 @@ int64_t ffurl_size(URLContext *h);
*/
int
ffurl_get_file_handle
(
URLContext
*
h
);
/**
* Register the URLProtocol protocol.
*
* @param size the size of the URLProtocol struct referenced
*/
int
ffurl_register_protocol
(
URLProtocol
*
protocol
,
int
size
);
#endif //AVFORMAT_URL_H
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