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
35e81441
Commit
35e81441
authored
Dec 08, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/sendcmd: switch to filter_frame API
parent
3eae531d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
f_sendcmd.c
libavfilter/f_sendcmd.c
+7
-9
No files found.
libavfilter/f_sendcmd.c
View file @
35e81441
...
...
@@ -448,7 +448,7 @@ static void av_cold uninit(AVFilterContext *ctx)
av_freep
(
&
sendcmd
->
intervals
);
}
static
int
process
_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
ref
)
static
int
filter
_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
ref
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
SendCmdContext
*
sendcmd
=
ctx
->
priv
;
...
...
@@ -504,13 +504,12 @@ static int process_frame(AVFilterLink *inlink, AVFilterBufferRef *ref)
}
end:
/* give the reference away, do not store in cur_buf */
inlink
->
cur_buf
=
NULL
;
switch
(
inlink
->
type
)
{
case
AVMEDIA_TYPE_VIDEO
:
return
ff_start_frame
(
inlink
->
dst
->
outputs
[
0
],
ref
);
case
AVMEDIA_TYPE_AUDIO
:
return
ff_filter_frame
(
inlink
->
dst
->
outputs
[
0
],
ref
);
case
AVMEDIA_TYPE_VIDEO
:
case
AVMEDIA_TYPE_AUDIO
:
return
ff_filter_frame
(
inlink
->
dst
->
outputs
[
0
],
ref
);
}
return
AVERROR
(
ENOSYS
);
}
...
...
@@ -529,8 +528,7 @@ static const AVFilterPad sendcmd_inputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
get_video_buffer
=
ff_null_get_video_buffer
,
.
start_frame
=
process_frame
,
.
end_frame
=
ff_null_end_frame
,
.
filter_frame
=
filter_frame
,
},
{
NULL
}
};
...
...
@@ -572,7 +570,7 @@ static const AVFilterPad asendcmd_inputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
get_audio_buffer
=
ff_null_get_audio_buffer
,
.
filter_frame
=
process
_frame
,
.
filter_frame
=
filter
_frame
,
},
{
NULL
}
};
...
...
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