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
468644f6
Commit
468644f6
authored
Feb 03, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: remove FF_API_URL_RESETBUF cruft
parent
575c18da
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
22 deletions
+0
-22
avio.h
libavformat/avio.h
+0
-8
aviobuf.c
libavformat/aviobuf.c
+0
-11
version.h
libavformat/version.h
+0
-3
No files found.
libavformat/avio.h
View file @
468644f6
...
...
@@ -542,14 +542,6 @@ int avio_get_str16le(AVIOContext *pb, int maxlen, char *buf, int buflen);
int
avio_get_str16be
(
AVIOContext
*
pb
,
int
maxlen
,
char
*
buf
,
int
buflen
);
#if FF_API_URL_RESETBUF
/** Reset the buffer for reading or writing.
* @note Will drop any data currently in the buffer without transmitting it.
* @param flags URL_RDONLY to set up the buffer for reading, or URL_WRONLY
* to set up the buffer for writing. */
int
url_resetbuf
(
AVIOContext
*
s
,
int
flags
);
#endif
/**
* @defgroup open_modes URL open modes
* The flags argument to avio_open must be one of the following
...
...
libavformat/aviobuf.c
View file @
468644f6
...
...
@@ -38,9 +38,7 @@
#define SHORT_SEEK_THRESHOLD 4096
static
void
fill_buffer
(
AVIOContext
*
s
);
#if !FF_API_URL_RESETBUF
static
int
url_resetbuf
(
AVIOContext
*
s
,
int
flags
);
#endif
int
ffio_init_context
(
AVIOContext
*
s
,
unsigned
char
*
buffer
,
...
...
@@ -878,18 +876,9 @@ int ffio_set_buf_size(AVIOContext *s, int buf_size)
return
0
;
}
#if FF_API_URL_RESETBUF
int
url_resetbuf
(
AVIOContext
*
s
,
int
flags
)
#else
static
int
url_resetbuf
(
AVIOContext
*
s
,
int
flags
)
#endif
{
#if FF_API_URL_RESETBUF
if
(
flags
&
AVIO_RDWR
)
return
AVERROR
(
EINVAL
);
#else
assert
(
flags
==
AVIO_WRONLY
||
flags
==
AVIO_RDONLY
);
#endif
if
(
flags
&
AVIO_WRONLY
)
{
s
->
buf_end
=
s
->
buffer
+
s
->
buffer_size
;
...
...
libavformat/version.h
View file @
468644f6
...
...
@@ -47,9 +47,6 @@
#ifndef FF_API_URL_CLASS
#define FF_API_URL_CLASS (LIBAVFORMAT_VERSION_MAJOR >= 53)
#endif
#ifndef FF_API_URL_RESETBUF
#define FF_API_URL_RESETBUF (LIBAVFORMAT_VERSION_MAJOR < 53)
#endif
#ifndef FF_API_REGISTER_PROTOCOL
#define FF_API_REGISTER_PROTOCOL (LIBAVFORMAT_VERSION_MAJOR < 53)
#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