Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
e7279638
Commit
e7279638
authored
12 years ago
by
Clément Bœsch
Browse files
Options
Downloads
Patches
Plain Diff
lavfi/thumbnail: remove unecessary poll_frame() callback.
parent
bce2e97a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavfilter/vf_thumbnail.c
+0
-23
0 additions, 23 deletions
libavfilter/vf_thumbnail.c
with
0 additions
and
23 deletions
libavfilter/vf_thumbnail.c
+
0
−
23
View file @
e7279638
...
...
@@ -170,28 +170,6 @@ static int request_frame(AVFilterLink *link)
return
0
;
}
static
int
poll_frame
(
AVFilterLink
*
link
)
{
ThumbContext
*
thumb
=
link
->
src
->
priv
;
AVFilterLink
*
inlink
=
link
->
src
->
inputs
[
0
];
int
ret
,
available_frames
=
ff_poll_frame
(
inlink
);
/* If the input link is not able to provide any frame, we can't do anything
* at the moment and thus have zero thumbnail available. */
if
(
!
available_frames
)
return
0
;
/* Since at least one frame is available and the next frame will allow us
* to compute a thumbnail, we can return 1 frame. */
if
(
thumb
->
n
==
thumb
->
n_frames
-
1
)
return
1
;
/* we have some frame(s) available in the input link, but not yet enough to
* output a thumbnail, so we request more */
ret
=
ff_request_frame
(
inlink
);
return
ret
<
0
?
ret
:
0
;
}
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
...
...
@@ -217,7 +195,6 @@ static const AVFilterPad thumbnail_outputs[] = {
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
request_frame
=
request_frame
,
.
poll_frame
=
poll_frame
,
},
{
NULL
}
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment