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
dadbebbb
Commit
dadbebbb
authored
Aug 30, 2011
by
Alex Converse
Committed by
Michael Niedermayer
Aug 30, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Don't unnecessarily convert ipts to a double.
parent
7357f6e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ffmpeg.c
ffmpeg.c
+5
-4
No files found.
ffmpeg.c
View file @
dadbebbb
...
...
@@ -2309,11 +2309,11 @@ static int transcode(AVFormatContext **output_files,
for
(;
received_sigterm
==
0
;)
{
int
file_index
,
ist_index
;
AVPacket
pkt
;
double
ipts_min
;
int64_t
ipts_min
;
double
opts_min
;
redo
:
ipts_min
=
1e100
;
ipts_min
=
INT64_MAX
;
opts_min
=
1e100
;
/* if 'q' pressed, exits */
if
(
!
using_stdin
)
{
...
...
@@ -2393,14 +2393,15 @@ static int transcode(AVFormatContext **output_files,
smallest output pts */
file_index
=
-
1
;
for
(
i
=
0
;
i
<
nb_ostreams
;
i
++
)
{
double
ipts
,
opts
;
int64_t
ipts
;
double
opts
;
ost
=
ost_table
[
i
];
os
=
output_files
[
ost
->
file_index
];
ist
=
&
input_streams
[
ost
->
source_index
];
if
(
ist
->
is_past_recording_time
||
no_packet
[
ist
->
file_index
])
continue
;
opts
=
ost
->
st
->
pts
.
val
*
av_q2d
(
ost
->
st
->
time_base
);
ipts
=
(
double
)
ist
->
pts
;
ipts
=
ist
->
pts
;
if
(
!
input_files
[
ist
->
file_index
].
eof_reached
){
if
(
ipts
<
ipts_min
)
{
ipts_min
=
ipts
;
...
...
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