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
2a52f19a
Commit
2a52f19a
authored
Apr 16, 2020
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/framesync: use av_gcd_q().
parent
6b65c4ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
framesync.c
libavfilter/framesync.c
+2
-12
No files found.
libavfilter/framesync.c
View file @
2a52f19a
...
...
@@ -117,7 +117,6 @@ static void framesync_sync_level_update(FFFrameSync *fs)
int
ff_framesync_configure
(
FFFrameSync
*
fs
)
{
unsigned
i
;
int64_t
gcd
,
lcm
;
if
(
!
fs
->
opt_repeatlast
||
fs
->
opt_eof_action
==
EOF_ACTION_PASS
)
{
fs
->
opt_repeatlast
=
0
;
...
...
@@ -142,17 +141,8 @@ int ff_framesync_configure(FFFrameSync *fs)
for
(
i
=
0
;
i
<
fs
->
nb_in
;
i
++
)
{
if
(
fs
->
in
[
i
].
sync
)
{
if
(
fs
->
time_base
.
num
)
{
gcd
=
av_gcd
(
fs
->
time_base
.
den
,
fs
->
in
[
i
].
time_base
.
den
);
lcm
=
(
fs
->
time_base
.
den
/
gcd
)
*
fs
->
in
[
i
].
time_base
.
den
;
if
(
lcm
<
AV_TIME_BASE
/
2
)
{
fs
->
time_base
.
den
=
lcm
;
fs
->
time_base
.
num
=
av_gcd
(
fs
->
time_base
.
num
,
fs
->
in
[
i
].
time_base
.
num
);
}
else
{
fs
->
time_base
.
num
=
1
;
fs
->
time_base
.
den
=
AV_TIME_BASE
;
break
;
}
fs
->
time_base
=
av_gcd_q
(
fs
->
time_base
,
fs
->
in
[
i
].
time_base
,
AV_TIME_BASE
/
2
,
AV_TIME_BASE_Q
);
}
else
{
fs
->
time_base
=
fs
->
in
[
i
].
time_base
;
}
...
...
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