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
5593f031
Commit
5593f031
authored
Apr 07, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: make URLProtocol internal.
parent
c486dade
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
avio.h
libavformat/avio.h
+5
-1
url.h
libavformat/url.h
+17
-0
No files found.
libavformat/avio.h
View file @
5593f031
...
...
@@ -139,8 +139,11 @@ attribute_deprecated int url_poll(URLPollEntry *poll_table, int n, int timeout);
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1
/*< The protocol name can be the first part of a nested protocol scheme */
#endif
/**
* @deprecated This struct is to be made private. Use the higher-level
* AVIOContext-based API instead.
*/
typedef
struct
URLProtocol
{
const
char
*
name
;
int
(
*
url_open
)(
URLContext
*
h
,
const
char
*
url
,
int
flags
);
...
...
@@ -157,6 +160,7 @@ typedef struct URLProtocol {
const
AVClass
*
priv_data_class
;
int
flags
;
}
URLProtocol
;
#endif
#if FF_API_REGISTER_PROTOCOL
extern
URLProtocol
*
first_protocol
;
...
...
libavformat/url.h
View file @
5593f031
...
...
@@ -43,6 +43,23 @@ typedef struct URLContext {
int
is_streamed
;
/**< true if streamed (no seek possible), default = false */
int
is_connected
;
}
URLContext
;
typedef
struct
URLProtocol
{
const
char
*
name
;
int
(
*
url_open
)(
URLContext
*
h
,
const
char
*
url
,
int
flags
);
int
(
*
url_read
)(
URLContext
*
h
,
unsigned
char
*
buf
,
int
size
);
int
(
*
url_write
)(
URLContext
*
h
,
const
unsigned
char
*
buf
,
int
size
);
int64_t
(
*
url_seek
)(
URLContext
*
h
,
int64_t
pos
,
int
whence
);
int
(
*
url_close
)(
URLContext
*
h
);
struct
URLProtocol
*
next
;
int
(
*
url_read_pause
)(
URLContext
*
h
,
int
pause
);
int64_t
(
*
url_read_seek
)(
URLContext
*
h
,
int
stream_index
,
int64_t
timestamp
,
int
flags
);
int
(
*
url_get_file_handle
)(
URLContext
*
h
);
int
priv_data_size
;
const
AVClass
*
priv_data_class
;
int
flags
;
}
URLProtocol
;
#endif
/**
...
...
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