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
1677155d
Commit
1677155d
authored
May 12, 2005
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
10l (overflows)
Originally committed as revision 4226 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
25a0a0a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
utils.c
libavformat/utils.c
+3
-3
No files found.
libavformat/utils.c
View file @
1677155d
...
@@ -632,10 +632,10 @@ static void compute_frame_duration(int *pnum, int *pden, AVStream *st,
...
@@ -632,10 +632,10 @@ static void compute_frame_duration(int *pnum, int *pden, AVStream *st,
*
pden
=
0
;
*
pden
=
0
;
switch
(
st
->
codec
.
codec_type
)
{
switch
(
st
->
codec
.
codec_type
)
{
case
CODEC_TYPE_VIDEO
:
case
CODEC_TYPE_VIDEO
:
if
(
st
->
time_base
.
num
*
1000
>
st
->
time_base
.
den
){
if
(
st
->
time_base
.
num
*
1000
LL
>
st
->
time_base
.
den
){
*
pnum
=
st
->
time_base
.
num
;
*
pnum
=
st
->
time_base
.
num
;
*
pden
=
st
->
time_base
.
den
;
*
pden
=
st
->
time_base
.
den
;
}
else
if
(
st
->
codec
.
time_base
.
num
*
1000
>
st
->
codec
.
time_base
.
den
){
}
else
if
(
st
->
codec
.
time_base
.
num
*
1000
LL
>
st
->
codec
.
time_base
.
den
){
*
pnum
=
st
->
codec
.
time_base
.
num
;
*
pnum
=
st
->
codec
.
time_base
.
num
;
*
pden
=
st
->
codec
.
time_base
.
den
;
*
pden
=
st
->
codec
.
time_base
.
den
;
if
(
pc
&&
pc
->
repeat_pict
)
{
if
(
pc
&&
pc
->
repeat_pict
)
{
...
@@ -1849,7 +1849,7 @@ int av_find_stream_info(AVFormatContext *ic)
...
@@ -1849,7 +1849,7 @@ int av_find_stream_info(AVFormatContext *ic)
if
(
st
->
codec
.
codec_id
==
CODEC_ID_RAWVIDEO
&&
!
st
->
codec
.
codec_tag
&&
!
st
->
codec
.
bits_per_sample
)
if
(
st
->
codec
.
codec_id
==
CODEC_ID_RAWVIDEO
&&
!
st
->
codec
.
codec_tag
&&
!
st
->
codec
.
bits_per_sample
)
st
->
codec
.
codec_tag
=
avcodec_pix_fmt_to_codec_tag
(
st
->
codec
.
pix_fmt
);
st
->
codec
.
codec_tag
=
avcodec_pix_fmt_to_codec_tag
(
st
->
codec
.
pix_fmt
);
if
(
duration_count
[
i
]
&&
st
->
codec
.
time_base
.
num
*
1000
<=
st
->
codec
.
time_base
.
den
&&
if
(
duration_count
[
i
]
&&
st
->
codec
.
time_base
.
num
*
1000
LL
<=
st
->
codec
.
time_base
.
den
&&
st
->
time_base
.
num
*
duration_sum
[
i
]
/
duration_count
[
i
]
*
1000LL
>
st
->
time_base
.
den
){
st
->
time_base
.
num
*
duration_sum
[
i
]
/
duration_count
[
i
]
*
1000LL
>
st
->
time_base
.
den
){
AVRational
fps1
;
AVRational
fps1
;
int64_t
num
,
den
;
int64_t
num
,
den
;
...
...
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