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
2e96f527
Commit
2e96f527
authored
Jan 21, 2018
by
Mark Thompson
Committed by
Jorge Ramirez-Ortiz
Jan 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2_m2m: Fix integer overflow in timestamp handling
parent
388a0f78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
v4l2_buffers.c
libavcodec/v4l2_buffers.c
+2
-1
No files found.
libavcodec/v4l2_buffers.c
View file @
2e96f527
...
...
@@ -69,7 +69,8 @@ static inline uint64_t v4l2_get_pts(V4L2Buffer *avbuf)
int64_t
v4l2_pts
;
/* convert pts back to encoder timebase */
v4l2_pts
=
avbuf
->
buf
.
timestamp
.
tv_sec
*
USEC_PER_SEC
+
avbuf
->
buf
.
timestamp
.
tv_usec
;
v4l2_pts
=
(
int64_t
)
avbuf
->
buf
.
timestamp
.
tv_sec
*
USEC_PER_SEC
+
avbuf
->
buf
.
timestamp
.
tv_usec
;
return
av_rescale_q
(
v4l2_pts
,
v4l2_timebase
,
s
->
avctx
->
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