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
8d65750e
Commit
8d65750e
authored
Feb 04, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
overflows
Originally committed as revision 3935 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3a615bb5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
asf-enc.c
libavformat/asf-enc.c
+2
-2
avidec.c
libavformat/avidec.c
+1
-1
No files found.
libavformat/asf-enc.c
View file @
8d65750e
...
...
@@ -700,10 +700,10 @@ static int asf_write_packet(AVFormatContext *s, AVPacket *pkt)
//XXX /FIXME use duration from AVPacket
if
(
codec
->
codec_type
==
CODEC_TYPE_AUDIO
)
{
duration
=
(
codec
->
frame_number
*
codec
->
frame_size
*
int64_t_C
(
10000000
))
/
duration
=
(
codec
->
frame_number
*
(
int64_t
)
codec
->
frame_size
*
int64_t_C
(
10000000
))
/
codec
->
sample_rate
;
}
else
{
duration
=
av_rescale
(
codec
->
frame_number
*
codec
->
frame_rate_base
,
10000000
,
codec
->
frame_rate
);
duration
=
av_rescale
(
codec
->
frame_number
*
(
int64_t
)
codec
->
frame_rate_base
,
10000000
,
codec
->
frame_rate
);
}
if
(
duration
>
asf
->
duration
)
asf
->
duration
=
duration
;
...
...
libavformat/avidec.c
View file @
8d65750e
...
...
@@ -229,7 +229,7 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
nb_frames
=
get_le32
(
pb
);
st
->
start_time
=
0
;
st
->
duration
=
av_rescale
(
nb_frames
,
st
->
codec
.
frame_rate_base
*
AV_TIME_BASE
,
st
->
codec
.
frame_rate_base
*
(
int64_t
)
AV_TIME_BASE
,
st
->
codec
.
frame_rate
);
url_fskip
(
pb
,
size
-
9
*
4
);
break
;
...
...
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