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
7b42036b
Commit
7b42036b
authored
Jun 05, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add a frame_rate field to AVFilterLink.
parent
04e2ac47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
avfilter.c
libavfilter/avfilter.c
+3
-0
avfilter.h
libavfilter/avfilter.h
+12
-0
No files found.
libavfilter/avfilter.c
View file @
7b42036b
...
...
@@ -243,6 +243,9 @@ int avfilter_config_links(AVFilterContext *filter)
link
->
sample_aspect_ratio
=
inlink
?
inlink
->
sample_aspect_ratio
:
(
AVRational
){
1
,
1
};
if
(
inlink
&&
!
link
->
frame_rate
.
num
&&
!
link
->
frame_rate
.
den
)
link
->
frame_rate
=
inlink
->
frame_rate
;
if
(
inlink
)
{
if
(
!
link
->
w
)
link
->
w
=
inlink
->
w
;
...
...
libavfilter/avfilter.h
View file @
7b42036b
...
...
@@ -738,6 +738,18 @@ struct AVFilterLink {
*/
int
age_index
;
/**
* Frame rate of the stream on the link, or 1/0 if unknown;
* if left to 0/0, will be automatically be copied from the first input
* of the source filter if it exists.
*
* Sources should set it to the best estimation of the real frame rate.
* Filters should update it if necessary depending on their function.
* Sinks can use it to set a default output frame rate.
* It is similar to the r_frae_rate field in AVStream.
*/
AVRational
frame_rate
;
};
/**
...
...
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