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
5148147b
Commit
5148147b
authored
Dec 02, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/bbox: switch to ff_filter_frame() API
parent
255be073
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
vf_bbox.c
libavfilter/vf_bbox.c
+3
-5
No files found.
libavfilter/vf_bbox.c
View file @
5148147b
...
...
@@ -56,11 +56,10 @@ static int query_formats(AVFilterContext *ctx)
return
0
;
}
static
int
end_frame
(
AVFilterLink
*
inlink
)
static
int
filter_frame
(
AVFilterLink
*
inlink
,
AVFilterBufferRef
*
picref
)
{
AVFilterContext
*
ctx
=
inlink
->
dst
;
BBoxContext
*
bbox
=
ctx
->
priv
;
AVFilterBufferRef
*
picref
=
inlink
->
cur_buf
;
FFBoundingBox
box
;
int
has_bbox
,
w
,
h
;
...
...
@@ -86,7 +85,7 @@ static int end_frame(AVFilterLink *inlink)
av_log
(
ctx
,
AV_LOG_INFO
,
"
\n
"
);
bbox
->
frame
++
;
return
ff_
end_frame
(
inlink
->
dst
->
outputs
[
0
]
);
return
ff_
filter_frame
(
inlink
->
dst
->
outputs
[
0
],
picref
);
}
static
const
AVFilterPad
bbox_inputs
[]
=
{
...
...
@@ -94,8 +93,7 @@ static const AVFilterPad bbox_inputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
get_video_buffer
=
ff_null_get_video_buffer
,
.
start_frame
=
ff_null_start_frame
,
.
end_frame
=
end_frame
,
.
filter_frame
=
filter_frame
,
.
min_perms
=
AV_PERM_READ
,
},
{
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