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
23849339
Commit
23849339
authored
Feb 10, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: Print negative times like "-00:05:01.22" instead of "00:-5:-1.-22"
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
08509c8f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ffmpeg.c
ffmpeg.c
+4
-2
No files found.
ffmpeg.c
View file @
23849339
...
@@ -1528,8 +1528,8 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
...
@@ -1528,8 +1528,8 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
nb_frames_drop
+=
ost
->
last_droped
;
nb_frames_drop
+=
ost
->
last_droped
;
}
}
secs
=
pts
/
AV_TIME_BASE
;
secs
=
FFABS
(
pts
)
/
AV_TIME_BASE
;
us
=
pts
%
AV_TIME_BASE
;
us
=
FFABS
(
pts
)
%
AV_TIME_BASE
;
mins
=
secs
/
60
;
mins
=
secs
/
60
;
secs
%=
60
;
secs
%=
60
;
hours
=
mins
/
60
;
hours
=
mins
/
60
;
...
@@ -1541,6 +1541,8 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
...
@@ -1541,6 +1541,8 @@ static void print_report(int is_last_report, int64_t timer_start, int64_t cur_ti
"size=N/A time="
);
"size=N/A time="
);
else
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
else
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"size=%8.0fkB time="
,
total_size
/
1024
.
0
);
"size=%8.0fkB time="
,
total_size
/
1024
.
0
);
if
(
pts
<
0
)
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"-"
);
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
snprintf
(
buf
+
strlen
(
buf
),
sizeof
(
buf
)
-
strlen
(
buf
),
"%02d:%02d:%02d.%02d "
,
hours
,
mins
,
secs
,
"%02d:%02d:%02d.%02d "
,
hours
,
mins
,
secs
,
(
100
*
us
)
/
AV_TIME_BASE
);
(
100
*
us
)
/
AV_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