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
b8b7d5ac
Commit
b8b7d5ac
authored
Sep 24, 2015
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add link.current_pts field.
parent
d03eab34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
avfilter.c
libavfilter/avfilter.c
+2
-0
avfilter.h
libavfilter/avfilter.h
+6
-0
No files found.
libavfilter/avfilter.c
View file @
b8b7d5ac
...
...
@@ -238,6 +238,7 @@ int avfilter_config_links(AVFilterContext *filter)
}
inlink
=
link
->
src
->
nb_inputs
?
link
->
src
->
inputs
[
0
]
:
NULL
;
link
->
current_pts
=
link
->
current_pts_us
=
AV_NOPTS_VALUE
;
switch
(
link
->
init_state
)
{
...
...
@@ -443,6 +444,7 @@ void ff_update_link_current_pts(AVFilterLink *link, int64_t pts)
{
if
(
pts
==
AV_NOPTS_VALUE
)
return
;
link
->
current_pts
=
pts
;
link
->
current_pts_us
=
av_rescale_q
(
pts
,
link
->
time_base
,
AV_TIME_BASE_Q
);
/* TODO use duration */
if
(
link
->
graph
&&
link
->
age_index
>=
0
)
...
...
libavfilter/avfilter.h
View file @
b8b7d5ac
...
...
@@ -433,6 +433,12 @@ struct AVFilterLink {
*/
struct
AVFilterGraph
*
graph
;
/**
* Current timestamp of the link, as defined by the most recent
* frame(s), in link time_base units.
*/
int64_t
current_pts
;
/**
* Current timestamp of the link, as defined by the most recent
* frame(s), in AV_TIME_BASE units.
...
...
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