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
fd0f45e5
Commit
fd0f45e5
authored
Sep 22, 2003
by
Roman Shaposhnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fix for integer overflow
Originally committed as revision 2297 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3f418551
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffmpeg.c
ffmpeg.c
+4
-4
No files found.
ffmpeg.c
View file @
fd0f45e5
...
...
@@ -1125,11 +1125,11 @@ static int av_encode(AVFormatContext **output_files,
switch
(
ist
->
st
->
codec
.
codec_type
)
{
case
CODEC_TYPE_AUDIO
:
av_frac_init
(
&
ist
->
next_pts
,
0
,
0
,
is
->
pts_num
*
ist
->
st
->
codec
.
sample_rate
);
0
,
0
,
(
uint64_t
)
is
->
pts_num
*
ist
->
st
->
codec
.
sample_rate
);
break
;
case
CODEC_TYPE_VIDEO
:
av_frac_init
(
&
ist
->
next_pts
,
0
,
0
,
is
->
pts_num
*
ist
->
st
->
codec
.
frame_rate
);
0
,
0
,
(
uint64_t
)
is
->
pts_num
*
ist
->
st
->
codec
.
frame_rate
);
break
;
default
:
break
;
...
...
@@ -1275,7 +1275,7 @@ static int av_encode(AVFormatContext **output_files,
}
data_buf
=
(
uint8_t
*
)
samples
;
av_frac_add
(
&
ist
->
next_pts
,
is
->
pts_den
*
data_size
/
(
2
*
ist
->
st
->
codec
.
channels
));
(
uint64_t
)
is
->
pts_den
*
data_size
/
(
2
*
ist
->
st
->
codec
.
channels
));
break
;
case
CODEC_TYPE_VIDEO
:
{
...
...
@@ -1300,7 +1300,7 @@ static int av_encode(AVFormatContext **output_files,
continue
;
}
av_frac_add
(
&
ist
->
next_pts
,
is
->
pts_den
*
ist
->
st
->
codec
.
frame_rate_base
);
(
uint64_t
)
is
->
pts_den
*
ist
->
st
->
codec
.
frame_rate_base
);
}
break
;
default
:
...
...
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