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
dcd4a7b6
Commit
dcd4a7b6
authored
Feb 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: remove FF_API_REGISTER_PROTOCOL cruft
parent
468644f6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
42 deletions
+0
-42
avio.c
libavformat/avio.c
+0
-23
avio.h
libavformat/avio.h
+0
-16
version.h
libavformat/version.h
+0
-3
No files found.
libavformat/avio.c
View file @
dcd4a7b6
...
@@ -84,29 +84,6 @@ int ffurl_register_protocol(URLProtocol *protocol, int size)
...
@@ -84,29 +84,6 @@ int ffurl_register_protocol(URLProtocol *protocol, int size)
return
0
;
return
0
;
}
}
#if FF_API_REGISTER_PROTOCOL
/* The layout of URLProtocol as of when major was bumped to 52 */
struct
URLProtocol_compat
{
const
char
*
name
;
int
(
*
url_open
)(
URLContext
*
h
,
const
char
*
filename
,
int
flags
);
int
(
*
url_read
)(
URLContext
*
h
,
unsigned
char
*
buf
,
int
size
);
int
(
*
url_write
)(
URLContext
*
h
,
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
av_register_protocol
(
URLProtocol
*
protocol
)
{
return
ffurl_register_protocol
(
protocol
,
sizeof
(
struct
URLProtocol_compat
));
}
int
register_protocol
(
URLProtocol
*
protocol
)
{
return
ffurl_register_protocol
(
protocol
,
sizeof
(
struct
URLProtocol_compat
));
}
#endif
static
int
url_alloc_for_protocol
(
URLContext
**
puc
,
struct
URLProtocol
*
up
,
static
int
url_alloc_for_protocol
(
URLContext
**
puc
,
struct
URLProtocol
*
up
,
const
char
*
filename
,
int
flags
)
const
char
*
filename
,
int
flags
)
{
{
...
...
libavformat/avio.h
View file @
dcd4a7b6
...
@@ -373,22 +373,6 @@ int avio_check(const char *url, int flags);
...
@@ -373,22 +373,6 @@ int avio_check(const char *url, int flags);
*/
*/
void
avio_set_interrupt_cb
(
int
(
*
interrupt_cb
)(
void
));
void
avio_set_interrupt_cb
(
int
(
*
interrupt_cb
)(
void
));
#if FF_API_REGISTER_PROTOCOL
extern
URLProtocol
*
first_protocol
;
#endif
#if FF_API_REGISTER_PROTOCOL
/**
* @deprecated Use av_register_protocol() instead.
*/
attribute_deprecated
int
register_protocol
(
URLProtocol
*
protocol
);
/**
* @deprecated Use av_register_protocol2() instead.
*/
attribute_deprecated
int
av_register_protocol
(
URLProtocol
*
protocol
);
#endif
/**
/**
* Allocate and initialize an AVIOContext for buffered I/O. It must be later
* Allocate and initialize an AVIOContext for buffered I/O. It must be later
* freed with av_free().
* freed with av_free().
...
...
libavformat/version.h
View file @
dcd4a7b6
...
@@ -47,9 +47,6 @@
...
@@ -47,9 +47,6 @@
#ifndef FF_API_URL_CLASS
#ifndef FF_API_URL_CLASS
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#endif
#endif
#ifndef FF_API_REGISTER_PROTOCOL
#define FF_API_REGISTER_PROTOCOL (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_GUESS_FORMAT
#ifndef FF_API_GUESS_FORMAT
#define FF_API_GUESS_FORMAT (LIBAVFORMAT_VERSION_MAJOR < 53)
#define FF_API_GUESS_FORMAT (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#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