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
5c79d2e1
Commit
5c79d2e1
authored
Feb 19, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: Do not divide by zero
parent
d6a27f88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
avconv.c
avconv.c
+7
-3
No files found.
avconv.c
View file @
5c79d2e1
...
...
@@ -858,14 +858,18 @@ static void print_report(int is_last_report, int64_t timer_start)
fflush
(
stderr
);
if
(
is_last_report
)
{
int64_t
raw
=
audio_size
+
video_size
+
extra_size
;
int64_t
raw
=
audio_size
+
video_size
+
extra_size
;
float
percent
=
0
.
0
;
if
(
raw
)
percent
=
100
.
0
*
(
total_size
-
raw
)
/
raw
;
av_log
(
NULL
,
AV_LOG_INFO
,
"
\n
"
);
av_log
(
NULL
,
AV_LOG_INFO
,
"video:%1.0fkB audio:%1.0fkB global headers:%1.0fkB muxing overhead %f%%
\n
"
,
video_size
/
1024
.
0
,
audio_size
/
1024
.
0
,
extra_size
/
1024
.
0
,
100
.
0
*
(
total_size
-
raw
)
/
raw
);
percent
);
}
}
...
...
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