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
545559e4
Commit
545559e4
authored
Sep 05, 2015
by
Hendrik Leppkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove FF_CONST_AVUTIL55 cruft
parent
2df52088
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
opt.c
libavutil/opt.c
+3
-3
opt.h
libavutil/opt.h
+3
-3
version.h
libavutil/version.h
+0
-8
No files found.
libavutil/opt.c
View file @
545559e4
...
...
@@ -42,13 +42,13 @@
#include <float.h>
#if FF_API_OLD_AVOPTIONS
const
AVOption
*
av_next_option
(
FF_CONST_AVUTIL55
void
*
obj
,
const
AVOption
*
last
)
const
AVOption
*
av_next_option
(
const
void
*
obj
,
const
AVOption
*
last
)
{
return
av_opt_next
(
obj
,
last
);
}
#endif
const
AVOption
*
av_opt_next
(
FF_CONST_AVUTIL55
void
*
obj
,
const
AVOption
*
last
)
const
AVOption
*
av_opt_next
(
const
void
*
obj
,
const
AVOption
*
last
)
{
const
AVClass
*
class
;
if
(
!
obj
)
...
...
@@ -1573,7 +1573,7 @@ static int opt_size(enum AVOptionType type)
return
0
;
}
int
av_opt_copy
(
void
*
dst
,
FF_CONST_AVUTIL55
void
*
src
)
int
av_opt_copy
(
void
*
dst
,
const
void
*
src
)
{
const
AVOption
*
o
=
NULL
;
const
AVClass
*
c
;
...
...
libavutil/opt.h
View file @
545559e4
...
...
@@ -420,7 +420,7 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out);
attribute_deprecated
int64_t
av_get_int
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
);
attribute_deprecated
const
char
*
av_get_string
(
void
*
obj
,
const
char
*
name
,
const
AVOption
**
o_out
,
char
*
buf
,
int
buf_len
);
attribute_deprecated
const
AVOption
*
av_next_option
(
FF_CONST_AVUTIL55
void
*
obj
,
const
AVOption
*
last
);
attribute_deprecated
const
AVOption
*
av_next_option
(
const
void
*
obj
,
const
AVOption
*
last
);
#endif
/**
...
...
@@ -683,7 +683,7 @@ const AVOption *av_opt_find2(void *obj, const char *name, const char *unit,
* or NULL
* @return next AVOption or NULL
*/
const
AVOption
*
av_opt_next
(
FF_CONST_AVUTIL55
void
*
obj
,
const
AVOption
*
prev
);
const
AVOption
*
av_opt_next
(
const
void
*
obj
,
const
AVOption
*
prev
);
/**
* Iterate over AVOptions-enabled children of obj.
...
...
@@ -835,7 +835,7 @@ int av_opt_query_ranges(AVOptionRanges **, void *obj, const char *key, int flags
* @param src Object to copy into
* @return 0 on success, negative on error
*/
int
av_opt_copy
(
void
*
dest
,
FF_CONST_AVUTIL55
void
*
src
);
int
av_opt_copy
(
void
*
dest
,
const
void
*
src
);
/**
* Get a default list of allowed ranges for the given option.
...
...
libavutil/version.h
View file @
545559e4
...
...
@@ -115,14 +115,6 @@
#define FF_API_FRAME_QP (LIBAVUTIL_VERSION_MAJOR < 56)
#endif
#ifndef FF_CONST_AVUTIL55
#if LIBAVUTIL_VERSION_MAJOR >= 55
#define FF_CONST_AVUTIL55 const
#else
#define FF_CONST_AVUTIL55
#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