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
0acf7e26
Commit
0acf7e26
authored
Apr 11, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: remove opaque passing hacks
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3fc7b471
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
+2
-11
avfilter.c
libavfilter/avfilter.c
+1
-10
avfiltergraph.c
libavfilter/avfiltergraph.c
+1
-1
No files found.
libavfilter/avfilter.c
View file @
0acf7e26
...
@@ -681,7 +681,6 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
...
@@ -681,7 +681,6 @@ static int process_options(AVFilterContext *ctx, AVDictionary **options,
return
count
;
return
count
;
}
}
#if 0
#if FF_API_AVFILTER_INIT_FILTER
#if FF_API_AVFILTER_INIT_FILTER
int
avfilter_init_filter
(
AVFilterContext
*
filter
,
const
char
*
args
,
void
*
opaque
)
int
avfilter_init_filter
(
AVFilterContext
*
filter
,
const
char
*
args
,
void
*
opaque
)
{
{
...
@@ -690,14 +689,6 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
...
@@ -690,14 +689,6 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
#endif
#endif
int
avfilter_init_str
(
AVFilterContext
*
filter
,
const
char
*
args
)
int
avfilter_init_str
(
AVFilterContext
*
filter
,
const
char
*
args
)
#else
int
avfilter_init_str
(
AVFilterContext
*
filter
,
const
char
*
args
)
{
return
avfilter_init_filter
(
filter
,
args
,
NULL
);
}
int
avfilter_init_filter
(
AVFilterContext
*
filter
,
const
char
*
args
,
void
*
opaque
)
#endif
{
{
AVDictionary
*
options
=
NULL
;
AVDictionary
*
options
=
NULL
;
AVDictionaryEntry
*
e
;
AVDictionaryEntry
*
e
;
...
@@ -812,7 +803,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
...
@@ -812,7 +803,7 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
}
}
if
(
filter
->
filter
->
init_opaque
)
if
(
filter
->
filter
->
init_opaque
)
ret
=
filter
->
filter
->
init_opaque
(
filter
,
opaque
);
ret
=
filter
->
filter
->
init_opaque
(
filter
,
NULL
);
else
if
(
filter
->
filter
->
init
)
else
if
(
filter
->
filter
->
init
)
ret
=
filter
->
filter
->
init
(
filter
);
ret
=
filter
->
filter
->
init
(
filter
);
else
if
(
filter
->
filter
->
init_dict
)
else
if
(
filter
->
filter
->
init_dict
)
...
...
libavfilter/avfiltergraph.c
View file @
0acf7e26
...
@@ -119,7 +119,7 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
...
@@ -119,7 +119,7 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
if
(
!*
filt_ctx
)
if
(
!*
filt_ctx
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
ret
=
avfilter_init_
filter
(
*
filt_ctx
,
args
,
opaque
);
ret
=
avfilter_init_
str
(
*
filt_ctx
,
args
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
fail
;
goto
fail
;
...
...
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