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
c5ad2c2c
Commit
c5ad2c2c
authored
Aug 17, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: make timer_start a local var in transcode().
parent
6494c001
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
avconv.c
avconv.c
+4
-5
No files found.
avconv.c
View file @
c5ad2c2c
...
...
@@ -204,8 +204,6 @@ static char *forced_key_frames = NULL;
static
float
dts_delta_threshold
=
10
;
static
int64_t
timer_start
;
static
uint8_t
*
audio_buf
;
static
uint8_t
*
audio_out
;
static
unsigned
int
allocated_audio_out_size
,
allocated_audio_buf_size
;
...
...
@@ -1272,7 +1270,7 @@ static void do_video_stats(AVFormatContext *os, OutputStream *ost,
static
void
print_report
(
OutputFile
*
output_files
,
OutputStream
*
ost_table
,
int
nb_ostreams
,
int
is_last_report
)
int
is_last_report
,
int64_t
timer_start
)
{
char
buf
[
1024
];
OutputStream
*
ost
;
...
...
@@ -1837,6 +1835,7 @@ static int transcode(OutputFile *output_files,
int
want_sdp
=
1
;
uint8_t
*
no_packet
;
int
no_packet_count
=
0
;
int64_t
timer_start
;
if
(
!
(
no_packet
=
av_mallocz
(
nb_input_files
)))
exit_program
(
1
);
...
...
@@ -2352,7 +2351,7 @@ static int transcode(OutputFile *output_files,
av_free_packet
(
&
pkt
);
/* dump report by using the output first video and audio streams */
print_report
(
output_files
,
output_streams
,
nb_output_streams
,
0
);
print_report
(
output_files
,
output_streams
,
nb_output_streams
,
0
,
timer_start
);
}
/* at the end of stream, we must flush the decoder buffers */
...
...
@@ -2372,7 +2371,7 @@ static int transcode(OutputFile *output_files,
}
/* dump report by using the first video and audio streams */
print_report
(
output_files
,
output_streams
,
nb_output_streams
,
1
);
print_report
(
output_files
,
output_streams
,
nb_output_streams
,
1
,
timer_start
);
/* close each encoder */
for
(
i
=
0
;
i
<
nb_output_streams
;
i
++
)
{
...
...
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