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
3530fdc7
Commit
3530fdc7
authored
Dec 17, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_stack: set framerate to VFR when inputs frame rates differs
parent
0f50be62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
vf_stack.c
libavfilter/vf_stack.c
+11
-0
No files found.
libavfilter/vf_stack.c
View file @
3530fdc7
...
...
@@ -310,6 +310,17 @@ static int config_output(AVFilterLink *outlink)
outlink
->
frame_rate
=
frame_rate
;
outlink
->
sample_aspect_ratio
=
sar
;
for
(
i
=
1
;
i
<
s
->
nb_inputs
;
i
++
)
{
AVFilterLink
*
inlink
=
ctx
->
inputs
[
i
];
if
(
outlink
->
frame_rate
.
num
!=
inlink
->
frame_rate
.
num
||
outlink
->
frame_rate
.
den
!=
inlink
->
frame_rate
.
den
)
{
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Video inputs have different frame rates, output will be VFR
\n
"
);
outlink
->
frame_rate
=
av_make_q
(
1
,
0
);
break
;
}
}
if
((
ret
=
ff_framesync_init
(
&
s
->
fs
,
ctx
,
s
->
nb_inputs
))
<
0
)
return
ret
;
...
...
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