Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7eb1ea2a
Commit
7eb1ea2a
authored
Apr 11, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/sendcmd: switch to an AVOptions-based system.
parent
389eb0a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
avfilter.c
libavfilter/avfilter.c
+0
-2
f_sendcmd.c
libavfilter/f_sendcmd.c
+3
-11
No files found.
libavfilter/avfilter.c
View file @
7eb1ea2a
...
...
@@ -678,7 +678,6 @@ static const char *const filters_left_to_update[] = {
"amerge"
,
"anullsrc"
,
"aresample"
,
"asendcmd"
,
"asetnsamples"
,
"astreamsync"
,
"atempo"
,
...
...
@@ -691,7 +690,6 @@ static const char *const filters_left_to_update[] = {
"pan"
,
"removelogo"
,
"scale"
,
"sendcmd"
,
"setdar"
,
"setsar"
,
};
...
...
libavfilter/f_sendcmd.c
View file @
7eb1ea2a
...
...
@@ -368,17 +368,11 @@ static int cmp_intervals(const void *a, const void *b)
return
ret
==
0
?
i1
->
index
-
i2
->
index
:
ret
;
}
static
av_cold
int
init
(
AVFilterContext
*
ctx
,
const
char
*
args
,
const
AVClass
*
class
)
static
av_cold
int
init
(
AVFilterContext
*
ctx
)
{
SendCmdContext
*
sendcmd
=
ctx
->
priv
;
int
ret
,
i
,
j
;
sendcmd
->
class
=
class
;
av_opt_set_defaults
(
sendcmd
);
if
((
ret
=
av_set_options_string
(
sendcmd
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
if
(
sendcmd
->
commands_filename
&&
sendcmd
->
commands_str
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Only one of the filename or commands options must be specified
\n
"
);
...
...
@@ -433,8 +427,6 @@ static void av_cold uninit(AVFilterContext *ctx)
SendCmdContext
*
sendcmd
=
ctx
->
priv
;
int
i
,
j
;
av_opt_free
(
sendcmd
);
for
(
i
=
0
;
i
<
sendcmd
->
nb_intervals
;
i
++
)
{
Interval
*
interval
=
&
sendcmd
->
intervals
[
i
];
for
(
j
=
0
;
j
<
interval
->
nb_commands
;
j
++
)
{
...
...
@@ -520,7 +512,7 @@ AVFILTER_DEFINE_CLASS(sendcmd);
static
av_cold
int
sendcmd_init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
return
init
(
ctx
,
args
,
&
sendcmd_class
);
return
init
(
ctx
);
}
static
const
AVFilterPad
sendcmd_inputs
[]
=
{
...
...
@@ -562,7 +554,7 @@ AVFILTER_DEFINE_CLASS(asendcmd);
static
av_cold
int
asendcmd_init
(
AVFilterContext
*
ctx
,
const
char
*
args
)
{
return
init
(
ctx
,
args
,
&
asendcmd_class
);
return
init
(
ctx
);
}
static
const
AVFilterPad
asendcmd_inputs
[]
=
{
...
...
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