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
77fa554b
Commit
77fa554b
authored
Mar 31, 2013
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/vf_tile: simplify request_frame loop.
parent
69d67fb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
vf_tile.c
libavfilter/vf_tile.c
+5
-10
No files found.
libavfilter/vf_tile.c
View file @
77fa554b
...
...
@@ -116,6 +116,8 @@ static int config_props(AVFilterLink *outlink)
/* TODO make the color an option, or find an unified way of choosing it */
ff_draw_color
(
&
tile
->
draw
,
&
tile
->
blank
,
(
uint8_t
[]){
0
,
0
,
0
,
-
1
});
outlink
->
flags
|=
FF_LINK_FLAG_REQUEST_LOOP
;
return
0
;
}
...
...
@@ -203,16 +205,9 @@ static int request_frame(AVFilterLink *outlink)
AVFilterLink
*
inlink
=
ctx
->
inputs
[
0
];
int
r
;
while
(
1
)
{
r
=
ff_request_frame
(
inlink
);
if
(
r
<
0
)
{
if
(
r
==
AVERROR_EOF
&&
tile
->
current
)
r
=
end_last_frame
(
ctx
);
break
;
}
if
(
!
tile
->
current
)
/* done */
break
;
}
r
=
ff_request_frame
(
inlink
);
if
(
r
==
AVERROR_EOF
&&
tile
->
current
)
r
=
end_last_frame
(
ctx
);
return
r
;
}
...
...
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