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
d9aa1ef2
Commit
d9aa1ef2
authored
May 14, 2020
by
Dale Curtis
Committed by
Michael Niedermayer
Jun 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/mathematics: Fix overflow with NaN in av_add_stable()
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
63ce7c71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mathematics.c
libavutil/mathematics.c
+1
-1
No files found.
libavutil/mathematics.c
View file @
d9aa1ef2
...
...
@@ -207,7 +207,7 @@ int64_t av_add_stable(AVRational ts_tb, int64_t ts, AVRational inc_tb, int64_t i
int64_t
old
=
av_rescale_q
(
ts
,
ts_tb
,
inc_tb
);
int64_t
old_ts
=
av_rescale_q
(
old
,
inc_tb
,
ts_tb
);
if
(
old
==
INT64_MAX
)
if
(
old
==
INT64_MAX
||
old
==
AV_NOPTS_VALUE
||
old_ts
==
AV_NOPTS_VALUE
)
return
ts
;
return
av_rescale_q
(
old
+
1
,
inc_tb
,
ts_tb
)
+
(
ts
-
old_ts
);
...
...
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